]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove use btrfs_remove_free_space_cache instead of variant
authorJosef Bacik <josef@toxicpanda.com>
Mon, 8 Aug 2022 20:10:27 +0000 (16:10 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:27:58 +0000 (12:27 +0200)
commitfc80f7aca55bfff8378f9aa3e6aa52015609132f
tree3c61631eccedbc18a805a0a62e373c9468939a77
parent8a1ae2781dee9fc21ca82db682d37bea4bd074ad
btrfs: remove use btrfs_remove_free_space_cache instead of variant

We are calling __btrfs_remove_free_space_cache everywhere to cleanup the
block group free space, however we can just use
btrfs_remove_free_space_cache and pass in the block group in all of
these places.  Then we can remove __btrfs_remove_free_space_cache and
rename __btrfs_remove_free_space_cache_locked to
__btrfs_remove_free_space_cache.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c
fs/btrfs/free-space-cache.c
fs/btrfs/free-space-cache.h
fs/btrfs/tests/btrfs-tests.c
fs/btrfs/tests/free-space-tests.c