Btrfs: use the inode own lock to protect its delalloc_bytes
authorMiao Xie <miaox@cn.fujitsu.com>
Tue, 29 Jan 2013 10:11:59 +0000 (10:11 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 17:59:06 +0000 (12:59 -0500)
We need not use a global lock to protect the delalloc_bytes of the
inode, just use its own lock. In this way, we can reduce the lock
contention and ->delalloc_lock will just protect delalloc inode
list.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>

No differences found