]> 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)
commitf93a4c3b827040f5cf4f112d0cbf4a3768b78dae
tree063a71c38092423ac6a68aa2d5dfc221d2c0557c
parentf6c1fda1eb9872c6151faf04098759670258b42d
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 285e833b0738
("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