]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: move the block group freeze/unfreeze helpers into block-group.c
authorFilipe Manana <fdmanana@suse.com>
Fri, 8 May 2020 10:01:59 +0000 (11:01 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:30 +0000 (11:25 +0200)
commitb1a5544f5ecd144fbb9590d65ecabd68a8c210fd
tree063a71c38092423ac6a68aa2d5dfc221d2c0557c
parent97ccd015b40e21d83b4924f227bc5b359a9e3e34
btrfs: move the block group freeze/unfreeze helpers into block-group.c

The helpers btrfs_freeze_block_group() and btrfs_unfreeze_block_group()
used to be named btrfs_get_block_group_trimming() and
btrfs_put_block_group_trimming() respectively.

At the time they were added to free-space-cache.c, by commit 23562e5e645c
("btrfs: add missing discards when unpinning extents with -o discard")
because all the trimming related functions were in free-space-cache.c.

Now that the helpers were renamed and are used in scrub context as well,
move them to block-group.c, a much more logical location for them.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c
fs/btrfs/block-group.h
fs/btrfs/ctree.h
fs/btrfs/free-space-cache.c