Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btrfs: Handle btrfs_set_extent_delalloc failure in fixup worker
This function was introduced by 247e743 ("Btrfs: Use async helpers to deal with pages that have been improperly dirtied") and it didn't do any error handling then. This function might very well fail in ENOMEM situation, yet it's not handled, this could lead to inconsistent state. So let's handle the failure by setting the mapping error bit. Cc: [email protected] Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
- Loading branch information