]> nv-tegra.nvidia Code Review - linux-3.10.git/commit
btrfs: add an extra wait mode to read_extent_buffer_pages
authorArne Jansen <sensille@gmx.net>
Fri, 10 Jun 2011 12:06:53 +0000 (14:06 +0200)
committerArne Jansen <sensille@gmx.net>
Sun, 2 Oct 2011 06:47:55 +0000 (08:47 +0200)
commitbb82ab88dfdb12948af58989c75bfe904bc1b09d
tree1311f5b5ec398cad99aa0da120aed0ee8a224a36
parent286d6e70aa6cf0f0235653eb1049bfc04610b4fb
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 <sensille@gmx.net>
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h