linux/fs/btrfs
Filipe Manana 5af1eae78d btrfs: add missing error return to btrfs_clear_extent_bit_changeset()
We have a couple error branches where we have an error stored in the 'err'
variable and then jump to the 'out' label, however we don't return that
error, we just return 0. Normally this is not a problem since those error
branches call extent_io_tree_panic() which triggers a BUG() call, however
it's possible to have rather exotic kernel config with CONFIG_BUG disabled
in which case the BUG() call does nothing and we fallthrough. So make sure
to return the error, not just to fix that exotic case but also to make the
code less confusing. While at it also rename the 'err' variable to 'ret'
since this is the style we prefer and use more widely.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2025-05-15 14:30:50 +02:00
..
tests btrfs: convert the buffer_radix to an xarray 2025-05-15 14:30:50 +02:00
accessors.c
accessors.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
acl.c
acl.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
async-thread.c btrfs: use list_first_entry() everywhere 2025-05-15 14:30:47 +02:00
async-thread.h
backref.c btrfs: use list_first_entry() everywhere 2025-05-15 14:30:47 +02:00
backref.h btrfs: use unsigned types for constants defined as bit shifts 2025-05-15 14:30:48 +02:00
bio.c btrfs: change return type of btrfs_alloc_dummy_sum() to int 2025-05-15 14:30:49 +02:00
bio.h btrfs: pass a physical address to btrfs_repair_io_failure() 2025-05-15 14:30:46 +02:00
block-group.c btrfs: trivial conversion to return bool instead of int 2025-05-15 14:30:49 +02:00
block-group.h
block-rsv.c btrfs: drop fs_info argument from btrfs_update_space_info_*() 2025-01-13 14:53:14 +01:00
block-rsv.h
btrfs_inode.h btrfs: move kmapping out of btrfs_check_sector_csum() 2025-05-15 14:30:46 +02:00
compression.c btrfs: rename ret2 to ret in btrfs_submit_compressed_read() 2025-05-15 14:30:49 +02:00
compression.h btrfs: prepare compression paths for large data folios 2025-05-15 14:30:45 +02:00
ctree.c btrfs: avoid redundant path slot assignment in btrfs_search_forward() 2025-03-18 20:35:52 +01:00
ctree.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
defrag.c btrfs: trivial conversion to return bool instead of int 2025-05-15 14:30:49 +02:00
defrag.h btrfs: pass struct btrfs_inode to btrfs_defrag_file() 2025-03-18 20:35:43 +01:00
delalloc-space.c btrfs: refactor how we handle reserved space inside copy_one_range() 2025-05-15 14:30:40 +02:00
delalloc-space.h btrfs: refactor how we handle reserved space inside copy_one_range() 2025-05-15 14:30:40 +02:00
delayed-inode.c btrfs: trivial conversion to return bool instead of int 2025-05-15 14:30:49 +02:00
delayed-inode.h btrfs: pass struct btrfs_inode to btrfs_fill_inode() 2025-03-18 20:35:43 +01:00
delayed-ref.c btrfs: simplify return logic from btrfs_delayed_ref_init() 2025-05-15 14:30:46 +02:00
delayed-ref.h btrfs: remove BTRFS_REF_LAST from enum btrfs_ref_type 2025-05-15 14:30:47 +02:00
dev-replace.c btrfs: trivial conversion to return bool instead of int 2025-05-15 14:30:49 +02:00
dev-replace.h btrfs: trivial conversion to return bool instead of int 2025-05-15 14:30:49 +02:00
dir-item.c btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_check_dir_item_collision() 2025-03-18 20:35:47 +01:00
dir-item.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
direct-io.c btrfs: use unsigned types for constants defined as bit shifts 2025-05-15 14:30:48 +02:00
direct-io.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
discard.c btrfs: fix discard worker infinite loop after disabling discard 2025-05-12 21:38:56 +02:00
discard.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
disk-io.c btrfs: get rid of btrfs_read_dev_super() 2025-05-15 14:30:50 +02:00
disk-io.h btrfs: get rid of btrfs_read_dev_super() 2025-05-15 14:30:50 +02:00
export.c btrfs: make btrfs_iget() return a btrfs inode instead 2025-03-18 20:35:50 +01:00
export.h
extent-io-tree.c btrfs: add missing error return to btrfs_clear_extent_bit_changeset() 2025-05-15 14:30:50 +02:00
extent-io-tree.h btrfs: make btrfs_find_contiguous_extent_bit() return bool instead of int 2025-05-15 14:30:44 +02:00
extent-tree.c btrfs: trivial conversion to return bool instead of int 2025-05-15 14:30:49 +02:00
extent-tree.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
extent_io.c btrfs: get rid of goto in alloc_test_extent_buffer() 2025-05-15 14:30:50 +02:00
extent_io.h btrfs: use buffer xarray for extent buffer writeback operations 2025-05-15 14:30:50 +02:00
extent_map.c btrfs: rename __tree_search() to remove double underscore prefix 2025-05-15 14:30:45 +02:00
extent_map.h btrfs: rename remaining exported extent map functions 2025-05-15 14:30:45 +02:00
fiemap.c btrfs: rename free_extent_state() to include a btrfs prefix 2025-05-15 14:30:44 +02:00
fiemap.h
file-item.c btrfs: change return type of btrfs_alloc_dummy_sum() to int 2025-05-15 14:30:49 +02:00
file-item.h btrfs: change return type of btrfs_alloc_dummy_sum() to int 2025-05-15 14:30:49 +02:00
file.c btrfs: trivial conversion to return bool instead of int 2025-05-15 14:30:49 +02:00
file.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
free-space-cache.c btrfs: use list_first_entry() everywhere 2025-05-15 14:30:47 +02:00
free-space-cache.h
free-space-tree.c btrfs: convert ASSERT(0) with handled errors to DEBUG_WARN() 2025-05-15 14:30:47 +02:00
free-space-tree.h
fs.c btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
fs.h btrfs: convert the buffer_radix to an xarray 2025-05-15 14:30:50 +02:00
inode-item.c btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_insert_inode_extref() 2025-05-15 14:30:42 +02:00
inode-item.h
inode.c btrfs: reformat comments in acls_after_inode_item() 2025-05-15 14:30:49 +02:00
ioctl.c btrfs: trivial conversion to return bool instead of int 2025-05-15 14:30:49 +02:00
ioctl.h btrfs: pass struct btrfs_inode to btrfs_sync_inode_flags_to_i_flags() 2025-03-18 20:35:49 +01:00
Kconfig lib/crc: remove CONFIG_LIBCRC32C 2025-04-04 11:31:42 -07:00
locking.c btrfs: trivial conversion to return bool instead of int 2025-05-15 14:30:49 +02:00
locking.h btrfs: trivial conversion to return bool instead of int 2025-05-15 14:30:49 +02:00
lru_cache.c
lru_cache.h
lzo.c btrfs: prepare compression paths for large data folios 2025-05-15 14:30:45 +02:00
Makefile btrfs: selftests: add delayed ref self test cases 2025-01-13 14:53:13 +01:00
messages.c
messages.h btrfs: add debug build only WARN 2025-05-15 14:30:47 +02:00
misc.h
ordered-data.c btrfs: use unsigned types for constants defined as bit shifts 2025-05-15 14:30:48 +02:00
ordered-data.h btrfs: introduce a read path dedicated extent lock helper 2025-03-18 20:35:48 +01:00
orphan.c
orphan.h
print-tree.c
print-tree.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
props.c btrfs: props: switch prop_handler::extract to struct btrfs_inode 2025-03-18 20:35:44 +01:00
props.h btrfs: pass struct btrfs_inode to btrfs_inode_inherit_props() 2025-03-18 20:35:44 +01:00
qgroup.c btrfs: convert WARN_ON(IS_ENABLED(CONFIG_BTRFS_DEBUG)) to DEBUG_WARN 2025-05-15 14:30:47 +02:00
qgroup.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
raid-stripe-tree.c btrfs: don't use btrfs_set_item_key_safe on RAID stripe-extents 2025-01-14 15:52:22 +01:00
raid-stripe-tree.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
raid56.c btrfs: raid56: rename parameter err to status in endio helpers 2025-05-15 14:30:49 +02:00
raid56.h
rcu-string.h
ref-verify.c
ref-verify.h
reflink.c btrfs: rename the functions to clear bits for an extent range 2025-05-15 14:30:43 +02:00
reflink.h
relocation.c btrfs: use list_first_entry() everywhere 2025-05-15 14:30:47 +02:00
relocation.h
root-tree.c btrfs: root-tree: remove unnecessary calls to btrfs_mark_buffer_dirty() 2025-01-13 14:53:20 +01:00
root-tree.h
scrub.c btrfs: scrub: use virtual addresses directly 2025-05-15 14:30:47 +02:00
scrub.h
send.c btrfs: use list_first_entry() everywhere 2025-05-15 14:30:47 +02:00
send.h btrfs: pass btrfs_root pointers to send ioctl parameters 2025-03-18 20:35:49 +01:00
space-info.c btrfs: fix typo in space info explanation 2025-05-15 14:30:39 +02:00
space-info.h btrfs: zoned: reclaim unused zone by zone resetting 2025-01-13 14:53:14 +01:00
subpage.c btrfs: subpage: prepare for large data folios 2025-05-15 14:30:42 +02:00
subpage.h btrfs: replace PAGE_SIZE with folio_size for subpage.[ch] 2025-03-18 20:35:52 +01:00
super.c btrfs: merge btrfs_read_dev_one_super() into btrfs_read_disk_super() 2025-05-15 14:30:50 +02:00
super.h
sysfs.c btrfs: allow debug builds to accept 2K block size 2025-03-18 20:35:49 +01:00
sysfs.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
transaction.c btrfs: use buffer xarray for extent buffer writeback operations 2025-05-15 14:30:50 +02:00
transaction.h btrfs: move abort_should_print_stack() to transaction.h 2025-01-13 14:53:17 +01:00
tree-checker.c btrfs: convert WARN_ON(IS_ENABLED(CONFIG_BTRFS_DEBUG)) to DEBUG_WARN 2025-05-15 14:30:47 +02:00
tree-checker.h btrfs: validate system chunk array at btrfs_validate_super() 2025-01-13 14:53:18 +01:00
tree-log.c btrfs: use list_first_entry() everywhere 2025-05-15 14:30:47 +02:00
tree-log.h
tree-mod-log.c
tree-mod-log.h
ulist.c
ulist.h
uuid-tree.c btrfs: uuid-tree: remove unnecessary call to btrfs_mark_buffer_dirty() 2025-01-13 14:53:20 +01:00
uuid-tree.h
verity.c btrfs: pass struct btrfs_inode to btrfs_sync_inode_flags_to_i_flags() 2025-03-18 20:35:49 +01:00
verity.h
volumes.c btrfs: get rid of btrfs_read_dev_super() 2025-05-15 14:30:50 +02:00
volumes.h btrfs: merge btrfs_read_dev_one_super() into btrfs_read_disk_super() 2025-05-15 14:30:50 +02:00
xattr.c btrfs: xattr: remove unnecessary call to btrfs_mark_buffer_dirty() 2025-01-13 14:53:20 +01:00
xattr.h btrfs: update include and forward declarations in headers 2025-03-18 20:35:43 +01:00
zlib.c btrfs: prepare compression paths for large data folios 2025-05-15 14:30:45 +02:00
zoned.c btrfs: convert the buffer_radix to an xarray 2025-05-15 14:30:50 +02:00
zoned.h btrfs: zoned: reclaim unused zone by zone resetting 2025-01-13 14:53:14 +01:00
zstd.c btrfs: use unsigned types for constants defined as bit shifts 2025-05-15 14:30:48 +02:00