aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2023-06-30 15:03:47 +0000
committerDavid Sterba <[email protected]>2023-08-21 12:52:12 +0000
commitaec5716c3e51a34ae8d98d287613b219ba267105 (patch)
tree125a845f522b589c615b27ce47fbc314d9adac9b /fs/btrfs/dev-replace.c
parentbtrfs: rename add_new_free_space() to btrfs_add_new_free_space() (diff)
downloadkernel-aec5716c3e51a34ae8d98d287613b219ba267105.tar.gz
kernel-aec5716c3e51a34ae8d98d287613b219ba267105.zip
btrfs: make btrfs_destroy_marked_extents() return void
Currently btrfs_destroy_marked_extents() is returning the value of the last call to find_first_extent_bit(), which returns a value of 1 meaning no more ranges found the dirty pages io tree. This value is useless to the single caller of btrfs_destroy_marked_extents(), which ignores any return value from btrfs_destroy_marked_extents(). This is because it's only used in the transaction abort path, where we can't even deal with any errors since we are in a critical situation already and cleanup of resources is done in a best effort fashion. So make btrfs_destroy_marked_extents() return void. Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions