]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: improve error handling in run_delalloc_nocow
authorNikolay Borisov <nborisov@suse.com>
Thu, 22 Aug 2019 14:24:20 +0000 (17:24 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:14 +0000 (14:59 +0200)
commitb5b0ab826db2a0f386443258ccf3c786088d8e35
treec233f6e6e22d48a4d11749bbc5c9d8b750bd0eb1
parent7412e2e9b4f2c742d7f519db3db0e3e35d8bac4a
btrfs: improve error handling in run_delalloc_nocow

Correctly handle failure cases when adding an ordered extents in case
of REGULAR or PREALLOC extents. Remove the BUG_ON.

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/inode.c