• A
    btrfs: add an extra wait mode to read_extent_buffer_pages · bb82ab88
    Arne Jansen 提交于
    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: NArne Jansen <sensille@gmx.net>
    bb82ab88
disk-io.c 84.1 KB