ocfs2: adjust code to match locking/unlocking order
authorJoseph Qi <joseph.qi@huawei.com>
Fri, 4 Sep 2015 22:43:52 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Sep 2015 23:54:41 +0000 (16:54 -0700)
commit3cb2ec43f63c42412a18620f1226eb4aa434a7a8
tree9bc01dd9148e4dbdf392b6ed409509cb22049287
parentbf59e6623a3a92a2bf428f2d6592c81aae6317e1
ocfs2: adjust code to match locking/unlocking order

Unlocking order in ocfs2_unlink and ocfs2_rename mismatches the
corresponding locking order, although it won't cause issues, adjust the
code so that it looks more reasonable.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: 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/namei.c