From: Arne Jansen Date: Fri, 10 Jun 2011 10:39:23 +0000 (+0200) Subject: btrfs: use readahead API for scrub X-Git-Tag: v3.2-rc1~21^2~9^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a26285eea8eb92e0088db011571d887d4551b0f;p=pandora-kernel.git btrfs: use readahead API for scrub Scrub uses a simple tree-enumeration to bring the relevant portions of the extent- and csum-tree into the page cache before starting the scrub-I/O. This is now replaced by using the new readahead-API. During readahead the scrub is being accounted as paused, so it won't hold off transaction commits. This change raises the average disk bandwith utilisation on my test volume from 70% to 90%. On another volume, the time for a test run went down from 89s to 43s. Changes v5: - reada1/2 are now of type struct reada_control * Signed-off-by: Arne Jansen --- Reading git-diff-tree failed