lkml.org 
[lkml]   [2010]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/3] bdi: Initialize noop_backing_dev_info properly
    Date
    Properly initialize this backing dev info so that writeback code does not
    barf when getting to it e.g. via sb->s_bdi.

    Signed-off-by: Jan Kara <jack@suse.cz>
    ---
    mm/backing-dev.c | 2 ++
    1 files changed, 2 insertions(+), 0 deletions(-)

    diff --git a/mm/backing-dev.c b/mm/backing-dev.c
    index eaa4a5b..69ae8ca 100644
    --- a/mm/backing-dev.c
    +++ b/mm/backing-dev.c
    @@ -30,6 +30,7 @@ EXPORT_SYMBOL_GPL(default_backing_dev_info);

    struct backing_dev_info noop_backing_dev_info = {
    .name = "noop",
    + .capabilities = BDI_CAP_NO_ACCT_AND_WRITEBACK,
    };
    EXPORT_SYMBOL_GPL(noop_backing_dev_info);

    @@ -243,6 +244,7 @@ static int __init default_bdi_init(void)
    err = bdi_init(&default_backing_dev_info);
    if (!err)
    bdi_register(&default_backing_dev_info, NULL, "default");
    + err = bdi_init(&noop_backing_dev_info);

    return err;
    }
    --
    1.6.4.2


    \
     
     \ /
      Last update: 2010-09-17 00:47    [W:0.020 / U:90.380 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site