[Ocfs2-devel] [PATCH] indexed-dirs: fix brelse order in ocfs2_find_entry_dx(), v2
Coly Li
coly.li at suse.de
Wed Oct 21 23:07:47 PDT 2009
Coly Li Wrote:
> In ocfs2_find_entry_dx(), if ocfs2_read_inode_block() failed, both di_bh and dx_root_bh are both released. In this case,
> for dx_root_bh, it's unnecessary (even buggy if refcount of dx_root_bh is non-zero).
>
> This patch fixes this issue by change brelse order of di_bh and dx_root_bh.
>
Hmm, I find di_bh and dx_root_bh are initialized to NULL in ocfs2_read_inode_block(). Therefore there is no issue
described in this patch. Please ignore this patch.
Thanks.
--
Coly Li
SuSE Labs
More information about the Ocfs2-devel
mailing list