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)
commitfacc8a2247340a9735fe8cc123c5da2102f5ef1b
treefc6a1ea604e0bd5c3d22da891669e0516d776916
parentf2a09da9d0cba17ad4041e7e54f1ca840b12d0be
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