]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_init_dev_replace()
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)
commit073dd51f1f6aa7c1b32721324c0dbca39586c63b
tree0729b7f1b37e506345828fcbf63f2a412447937c
parentefac576c22ebc0753898575d5b5386fba10847a6
btrfs: use BTRFS_PATH_AUTO_FREE in btrfs_init_dev_replace()

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/dev-replace.c