summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/block-rsv.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2023-04-29 22:07:10 +0200
committerDavid Sterba <dsterba@suse.com>2023-06-19 13:59:24 +0200
commit54d687c13aef3194ea1490cf6d4b5016da1cf0bb (patch)
tree8cbfa23a5d0c4a7568edb2b62fc789ccc4dfd7cd /fs/btrfs/block-rsv.h
parentbtrfs: scrub: use recovered data stripes as cache to avoid unnecessary read (diff)
downloadlinux-54d687c13aef3194ea1490cf6d4b5016da1cf0bb.tar.xz
linux-54d687c13aef3194ea1490cf6d4b5016da1cf0bb.zip
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>
Diffstat (limited to 'fs/btrfs/block-rsv.h')
-rw-r--r--fs/btrfs/block-rsv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/block-rsv.h b/fs/btrfs/block-rsv.h
index 6dc781709aca..b0bd12b8652f 100644
--- a/fs/btrfs/block-rsv.h
+++ b/fs/btrfs/block-rsv.h
@@ -82,6 +82,8 @@ void btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_info);
struct btrfs_block_rsv *btrfs_use_block_rsv(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
u32 blocksize);
+int btrfs_check_trunc_cache_free_space(struct btrfs_fs_info *fs_info,
+ struct btrfs_block_rsv *rsv);
static inline void btrfs_unuse_block_rsv(struct btrfs_fs_info *fs_info,
struct btrfs_block_rsv *block_rsv,
u32 blocksize)