]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: more trivial BTRFS_PATH_AUTO_FREE conversions
authorSun YangKai <sunk67188@gmail.com>
Mon, 22 Sep 2025 11:30:07 +0000 (19:30 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:26 +0000 (08:49 +0200)
commit4ca6f24a52c4e94bd09f70cf132d0a38db7996b0
treed85e13f342aab346508229d8f8004d4022612827
parentc9ff83963a49a413b8ace36de21f61b47f461b98
btrfs: more trivial BTRFS_PATH_AUTO_FREE conversions

Trivial pattern for the auto freeing with goto -> return conversions
if possible.

The following cases are considered trivial in this patch:

1. Cases where there are no operations between btrfs_free_path() and the
   function returns.
2. Cases where only simple cleanup operations (such as kfree(), kvfree(),
   clear_bit(), and fs_path_free()) are present between
   btrfs_free_path() and the function return.

Signed-off-by: Sun YangKai <sunk67188@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid-stripe-tree.c
fs/btrfs/ref-verify.c
fs/btrfs/reflink.c
fs/btrfs/relocation.c
fs/btrfs/root-tree.c
fs/btrfs/scrub.c
fs/btrfs/send.c
fs/btrfs/super.c
fs/btrfs/transaction.c
fs/btrfs/tree-log.c