Btrfs: make delayed ref lock logic more readable
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 19 Dec 2012 08:10:10 +0000 (08:10 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 14:36:41 +0000 (09:36 -0500)
commit093486c453a55230ccdad4b48863b872fe68c46e
tree5e66183feabea18cca133d4688d7adbdf0110360
parent0e8c36a9fd8169a8b96c2ddc8446894bcd07b6b1
Btrfs: make delayed ref lock logic more readable

Locking and unlocking delayed ref mutex are in the different functions,
and the name of lock functions is not uniform, so the readability is not
so good, this patch optimizes the lock logic and makes it more readable.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/delayed-ref.c
fs/btrfs/delayed-ref.h
fs/btrfs/extent-tree.c