btrfs: move btrfs_check_trunc_cache_free_space into block-rsv.c
authorJosef Bacik <josef@toxicpanda.com>
Sat, 29 Apr 2023 20:07:10 +0000 (16:07 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:24 +0000 (13:59 +0200)
commit54d687c13aef3194ea1490cf6d4b5016da1cf0bb
tree8cbfa23a5d0c4a7568edb2b62fc789ccc4dfd7cd
parent94ead93e63758f2c7cbe0c68ca232fff812ca33e
btrfs: move btrfs_check_trunc_cache_free_space into block-rsv.c

This is completely related to block rsv's, move it out of the free space
cache code and into block-rsv.c.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-rsv.c
fs/btrfs/block-rsv.h
fs/btrfs/free-space-cache.c
fs/btrfs/free-space-cache.h