ocfs2: do not call brelse() if group_bh is not initialized in ocfs2_group_add()
authorYounger Liu <younger.liu@huawei.com>
Tue, 12 Nov 2013 23:07:04 +0000 (15:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:01 +0000 (12:09 +0900)
commit8abaae8d85d4e1de0fcc81b733ba04a5d318ba7a
treeacfaa1d65c2e4696c160a22a7d083a942ccfab7f
parenteedd40e1cad4217c9b7e2577debcdd0c48732cc3
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/resize.c