btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_get_name()
authorDavid Sterba <dsterba@suse.com>
Mon, 24 Feb 2025 08:15:17 +0000 (09:15 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:48 +0000 (20:35 +0100)
commit899c8798b59b16f7ffdc73e3766bfcf126cad483
tree50c1b625c227b09a9955ed67c5c798cb1fbce06a
parent72f2bae3c15ce54b0c38d7ee348de1ca74ef6de9
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_get_name()

This is the trivial pattern for path auto free, initialize at the
beginning and free at the end with some return simplifications.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/export.c