]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: block-group: refactor how we delete one block group item
authorQu Wenruo <wqu@suse.com>
Mon, 4 May 2020 23:58:21 +0000 (07:58 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:31 +0000 (11:25 +0200)
commit52f21253be1e4e655f6227fa199fee62f2226a5a
treed25d3f6499e86d1a0c5dbd6ac555f5b15ed10da3
parent013d5599d58a06f2d0c0760817c8e5ce0bda3238
btrfs: block-group: refactor how we delete one block group item

When deleting a block group item, it's pretty straight forward, just
delete the item pointed by the key.  However it will not be that
straight-forward for incoming skinny block group item.

So refactor the block group item deletion into a new function,
remove_block_group_item(), also to make the already lengthy
btrfs_remove_block_group() a little shorter.

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