summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorLi Dongyang <lidongyang@novell.com>2011-03-24 10:24:25 +0000
committerroot <Chris Mason chris.mason@oracle.com>2011-03-28 05:37:43 -0400
commitb4d00d569a49fcef02195635dbf8d15904b1fb63 (patch)
treefc2414cdb122d4c4c5d1c0a37f9217ad3e2d5e3f /fs/btrfs/ctree.h
parent3ab3564f018b9b265d0258e4a231794bacd5ad85 (diff)
downloadlinux-b4d00d569a49fcef02195635dbf8d15904b1fb63.tar.bz2
Btrfs: make update_reserved_bytes() public
Make the function public as we should update the reserved extents calculations after taking out an extent for trimming. Signed-off-by: Li Dongyang <lidongyang@novell.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 8302ecd4197f..9e21176cdf57 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2157,6 +2157,8 @@ int btrfs_free_extent(struct btrfs_trans_handle *trans,
u64 root_objectid, u64 owner, u64 offset);
int btrfs_free_reserved_extent(struct btrfs_root *root, u64 start, u64 len);
+int btrfs_update_reserved_bytes(struct btrfs_block_group_cache *cache,
+ u64 num_bytes, int reserve, int sinfo);
int btrfs_prepare_extent_commit(struct btrfs_trans_handle *trans,
struct btrfs_root *root);
int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans,