btrfs: return allocated block group from do_chunk_alloc()
authorNaohiro Aota <naohiro.aota@wdc.com>
Tue, 22 Mar 2022 09:11:33 +0000 (18:11 +0900)
committerDavid Sterba <dsterba@suse.com>
Tue, 5 Apr 2022 22:50:39 +0000 (00:50 +0200)
commit820c363bd526ec8e133e4b84e6ad1fda12023b4b
treeb9c498a0e9b4e37fa9dffcd50d9cdc9e18826b89
parenta690e5f2db4d1dca742ce734aaff9f3112d63764
btrfs: return allocated block group from do_chunk_alloc()

Return the allocated block group from do_chunk_alloc(). This is a
preparation patch for the next patch.

CC: stable@vger.kernel.org # 5.16+
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Tested-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c