]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: batch the extent state operation when reading pages
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 25 Jul 2013 11:22:36 +0000 (19:22 +0800)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:04:35 +0000 (08:04 -0400)
commit2a8ecdee4b654b303504cb5199d680a280011fda
treed5560cd2d7d698737b358afc718b36fdec7aa1dd
parentcafa6c30e6340b878913ec20a43515ab3313cde7
Btrfs: batch the extent state operation when reading pages

In the past, we cached the checksum value in the extent state object, so we
had to split the extent state object by the block size, or we had no space
to keep this checksum value. But it increased the lock contention of the
extent state tree.

Now we removed this limit by caching the checksum into the bio object, so
it is unnecessary to do the extent state operations by the block size, we
can do it in batches, in this way, we can reduce the lock contention of
the extent state tree.

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/extent_io.c