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)
commit7789a55aa1c98e3408a77167699f86fdb79f097b
tree913ca5e354fe000997219acbdeb63b639979173e
parentfc8a168aa9ab1680c2bd52bf9db7c994e0f2524f
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