From: Arne Jansen Date: Fri, 10 Jun 2011 11:55:54 +0000 (+0200) Subject: btrfs: hooks for readahead X-Git-Tag: v3.2-rc1~21^2~9^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bb31e92;p=pandora-kernel.git btrfs: hooks for readahead This adds the hooks needed for readahead. In the readpage_end_io_hook, the extent state is checked for the EXTENT_READAHEAD flag. Only in this case the readahead hook is called, to keep the impact on non-ra as low as possible. Additionally, a hook for a failed IO is added, otherwise readahead would wait indefinitely for the extent to finish. Changes for v2: - eliminate race condition Signed-off-by: Arne Jansen --- Reading git-diff-tree failed