]> 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)
commita4611b369a26e9340d5a1a6e1adc7471914838cf
tree913ca5e354fe000997219acbdeb63b639979173e
parent897b2fbf1d52ce6c244342704563dcae00a18862
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