From: Miao Xie Date: Fri, 5 Apr 2013 07:20:56 +0000 (+0000) Subject: Btrfs: improve the performance of the csums lookup X-Git-Tag: v3.10-rc1~31^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4100d987b2437596ebcf11809022b79507f3db1;p=pandora-kernel.git 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=/file of=/dev/null bs=1M count=1024 Signed-off-by: Miao Xie Signed-off-by: Josef Bacik --- Reading git-diff-tree failed