]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: load checksum data once when submitting a direct read io
authorMiao Xie <miaox@cn.fujitsu.com>
Fri, 12 Sep 2014 10:43:54 +0000 (18:43 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:38:50 +0000 (13:38 -0700)
commit2c001511d5dd8ad1957dc4ea387f4dc85d7263e3
tree58199f4b68c72a1a6c4d0be4cf6ab917ecdcb070
parentb095d912cc010bc6da0c9642eacb51f6b1be5cdb
Btrfs: load checksum data once when submitting a direct read io

The current code would load checksum data for several times when we split
a whole direct read io because of the limit of the raid stripe, it would
make us search the csum tree for several times. In fact, it just wasted time,
and made the contention of the csum tree root be more serious. This patch
improves this problem by loading the data at once.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/ctree.h
fs/btrfs/extent_io.c
fs/btrfs/file-item.c
fs/btrfs/inode.c