diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-04-05 07:20:56 +0000 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-05-06 15:54:35 -0400 |
commit | e4100d987b2437596ebcf11809022b79507f3db1 (patch) | |
tree | 2e1b987afa41149ef621581f1eb125c027453f74 /fs/inode.c | |
parent | 09a2a8f96e3009273bed1833b3f210e2c68728a5 (diff) | |
download | op-kernel-dev-e4100d987b2437596ebcf11809022b79507f3db1.zip op-kernel-dev-e4100d987b2437596ebcf11809022b79507f3db1.tar.gz |
Btrfs: improve the performance of the csums lookup
It is very likely that there are several blocks in bio, it is very
inefficient if we get their csums one by one. This patch improves
this problem by getting the csums in batch.
According to the result of the following test, the execute time of
__btrfs_lookup_bio_sums() is down by ~28%(300us -> 217us).
# dd if=<mnt>/file of=/dev/null bs=1M count=1024
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/inode.c')
0 files changed, 0 insertions, 0 deletions