]> 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)
commit5af76b2a84bbc115d2e3b7036e86c1a9862df243
treec233f6e6e22d48a4d11749bbc5c9d8b750bd0eb1
parent64ffa6fe90bdd4504d33fb7b861c7847f2435262
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