commit | df0af1a57f72c74d53a9377c60ff20095afab97d | [log] [tgz] |
---|---|---|
author | Miao Xie <miaox@cn.fujitsu.com> | Tue Jan 29 10:11:59 2013 +0000 |
committer | Josef Bacik <jbacik@fusionio.com> | Wed Feb 20 12:59:06 2013 -0500 |
tree | 588048ea16f8564a2eb449c0e9b7ba22c49eebc6 | |
parent | 963d678b0f7649300e3a67f2513ca9d830c6e303 [diff] |
Btrfs: use the inode own lock to protect its delalloc_bytes 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>