]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: do not call brelse() if group_bh is not initialized in ocfs2_group_add()
authorYounger Liu <younger.liu@huawei.com>
Tue, 5 Nov 2013 05:55:07 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:07 +0000 (16:55 +1100)
commit7f770958cb06e3a18f70c8883f26bbdf6c30e1ce
tree82291b0d961db60950746a532ada7dad73ed5be4
parenta512d1505f5187d39cab27bdd0bdfac3ed3f1836
ocfs2: do not call brelse() if group_bh is not initialized in ocfs2_group_add()

If group_bh is not initialized, there is no need to release.  This problem
does not cause anything wrong, but the patch would make the code more
logical.

Signed-off-by: Younger Liu <younger.liu@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Acked-by: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/resize.c