lkml.org 
[lkml]   [2010]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 3/3] jffs2: Fixup rb_root initializations to use RB_ROOT
    jffs2 uses rb_node = NULL; to zero rb_root.
    The problem with this is that 17d9ddc72fb8bba0d4f678 in the
    linux-next tree adds a new field to that struct which needs to be NULLas well.
    This patch uses RB_ROOT as the intializer so all of the relevant fields will
    be NULL'd.

    Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
    ---
    fs/jffs2/readinode.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/fs/jffs2/readinode.c b/fs/jffs2/readinode.c
    index e22de83..d32ee94 100644
    --- a/fs/jffs2/readinode.c
    +++ b/fs/jffs2/readinode.c
    @@ -567,7 +567,7 @@ static void jffs2_free_tmp_dnode_info_list(struct rb_root *list)
    else BUG();
    }
    }
    - list->rb_node = NULL;
    + *list = RB_ROOT;
    }

    static void jffs2_free_full_dirent_list(struct jffs2_full_dirent *fd)
    --
    1.6.0.6
    --



    \
     
     \ /
      Last update: 2010-02-24 02:49    [W:0.035 / U:0.024 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site