btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_init_root_free_objectid()
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:47 +0000 (20:35 +0100)
commit72f2bae3c15ce54b0c38d7ee348de1ca74ef6de9
tree21ed76349d60a915caf980c6777b942975dfc126
parentaaa5ae8f6d15c7f662b639ac8907c34794a4d52c
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_init_root_free_objectid()

This is the trivial pattern for path auto free, initialize at the
beginning and free at the end with simple goto -> return conversions.

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