]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove pointless out labels from free-space-cache.c
authorFilipe Manana <fdmanana@suse.com>
Tue, 20 Jan 2026 19:54:00 +0000 (19:54 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 06:56:21 +0000 (07:56 +0100)
commit46099eaef3716ea31557c5312ee69460b0c57c0c
tree7778a42829ecd1ef1b83cf16deaa2d1ef5231017
parentea8f9210050136bdd14f5e32b04cd01c8bd5c0ca
btrfs: remove pointless out labels from free-space-cache.c

Some functions (update_cache_item(), find_free_space(), trim_bitmaps(),
btrfs_remove_free_space() and cleanup_free_space_cache_v1()) have an 'out'
label that does nothing but return, making it pointless. Simplify this by
removing the label and returning instead of gotos plus setting the 'ret'
variable.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c