]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't cache the csum value into the extent state tree
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 25 Jul 2013 11:22:34 +0000 (19:22 +0800)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:04:33 +0000 (08:04 -0400)
commitf45df5d49851ec62da286c1a0dd4fd46b2e29ca8
treefc6a1ea604e0bd5c3d22da891669e0516d776916
parent9989c95b9c910b315482c7b0d4e48d49a851bd13
Btrfs: don't cache the csum value into the extent state tree

Before applying this patch, we cached the csum value into the extent state
tree when reading some data from the disk, this operation increased the lock
contention of the state tree.

Now, we just store the csum value into the bio structure or other unshared
structure, so we can reduce the lock contention.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/file-item.c
fs/btrfs/inode.c
fs/btrfs/volumes.h