]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Move epd::extent_locked check to writepage_delalloc's caller
authorNikolay Borisov <nborisov@suse.com>
Thu, 8 Nov 2018 08:18:06 +0000 (10:18 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:32 +0000 (14:51 +0100)
commit089fcf4436dcf03b4c583224e4053bdd5331bde8
tree913ca5e354fe000997219acbdeb63b639979173e
parentfe4c1151df2d3bffe9b1208189a3cf5d83f2f3ff
btrfs: Move epd::extent_locked check to writepage_delalloc's caller

If epd::extent_locked is set then writepage_delalloc terminates. Make
this a bit more apparent in the caller by simply bubbling the check up.
This enables to remove epd as an argument to writepage_delalloc in a
future patch. No functional change.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c