]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1299cc8dfa4a5645945e33de86863b32dea359b1
tree5e66183feabea18cca133d4688d7adbdf0110360
parent6e41f3ee5e1084cbaccdc9314e70289e791235b1
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