mbox series

[0/3] Error handling in unpin_extent_cache()

Message ID cover.1705426614.git.dsterba@suse.com (mailing list archive)
Headers show
Series Error handling in unpin_extent_cache() | expand

Message

David Sterba Jan. 16, 2024, 5:42 p.m. UTC
Do the erorr handling in unpin_extent_cache so we don't se any "change
the return value to void" patches again. The errors are pushed up one
level in each patch.

There's case in btrfs_finish_extent_commit() that still needs to be
changed from BUG_ON to proper handling but it does not look easy.

David Sterba (3):
  brtfs: handle errors returned from unpin_extent_cache()
  btrfs: return errors from unpin_extent_range()
  btrfs: make btrfs_error_unpin_extent_range() return void

 fs/btrfs/block-group.c |  2 +-
 fs/btrfs/ctree.h       |  3 +--
 fs/btrfs/extent-tree.c | 22 ++++++++++++++++------
 fs/btrfs/extent_map.c  | 10 +++++++++-
 fs/btrfs/inode.c       |  9 +++++++--
 5 files changed, 34 insertions(+), 12 deletions(-)