From: Arne Jansen Date: Fri, 10 Jun 2011 12:06:53 +0000 (+0200) Subject: btrfs: add an extra wait mode to read_extent_buffer_pages X-Git-Tag: v3.2-rc1~21^2~9^2~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb82ab88dfdb12948af58989c75bfe904bc1b09d;p=pandora-kernel.git btrfs: add an extra wait mode to read_extent_buffer_pages read_extent_buffer_pages currently has two modes, either trigger a read without waiting for anything, or wait for the I/O to finish. The former also bails when it's unable to lock the page. This patch now adds an additional parameter to allow it to block on page lock, but don't wait for completion. Changes v5: - merge the 2 wait parameters into one and define WAIT_NONE, WAIT_COMPLETE and WAIT_PAGE_LOCK Change v6: - fix bug introduced in v5 Signed-off-by: Arne Jansen --- Reading git-diff-tree failed