[PATCH v2 0/2] btrfs: more trivial BTRFS_PATH_AUTO_FREE conversions

Sun YangKai
2025-08-21T13:16:29Z

Trival pattern for the auto freeing with goto -> return convertions
if possible.

---
Changelog
v1 -> v2: check NULL info parameter early in send.c:get_inode_info()
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>

Sun YangKai (2):
btrfs: get_inode_info(): check NULL info parameter early
btrfs: more trivial BTRFS_PATH_AUTO_FREE conversions

fs/btrfs/raid-stripe-tree.c | 16 +-
fs/btrfs/ref-verify.c | 3 +-
fs/btrfs/reflink.c | 3 +-
fs/btrfs/relocation.c | 66 +++-----
fs/btrfs/root-tree.c | 49 +++---
fs/btrfs/scrub.c | 11 +-
fs/btrfs/send.c | 313 +++++++++++++-----------------------
fs/btrfs/super.c | 9 +-
fs/btrfs/tree-log.c | 124 +++++---------
9 files changed, 207 insertions(+), 387 deletions(-)

--
2.50.1