[Ocfs2-tools-devel] [PATCH 20/30] libocfs2: fix ocfs2_init_dir() to retain indexed flag

Joel Becker Joel.Becker at oracle.com
Thu Apr 29 15:08:59 PDT 2010


On Wed, Apr 28, 2010 at 06:26:25PM -0700, Mark Fasheh wrote:
> We were re-using the out of date 'cached inode' later in the function after
> ocfs2_dx_dir_build() (which updates and writes out the inode internally).
> 
> As a result, ocfs2_init_dir() was accidentally clearing
> OCFS2_INDEXED_DIR_FL. Fix this by refreshing the cache after the call to
> ocfs2_dx_dir_build().
> 
> Signed-off-by: Mark Fasheh <mfasheh at suse.com>
> Cc: Joel Becker <joel.becker at oracle.com>
> Cc: Sunil Mushran <sunil.mushran at oracle.com>

sob.

Joel

-- 

"Sometimes one pays most for the things one gets for nothing."
        - Albert Einstein

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-tools-devel mailing list