diff options
author | Li Dongyang <lidongyang@novell.com> | 2011-03-24 10:24:25 +0000 |
---|---|---|
committer | root <Chris Mason chris.mason@oracle.com> | 2011-03-28 05:37:43 -0400 |
commit | b4d00d569a49fcef02195635dbf8d15904b1fb63 (patch) | |
tree | fc2414cdb122d4c4c5d1c0a37f9217ad3e2d5e3f /fs/btrfs/ctree.h | |
parent | 3ab3564f018b9b265d0258e4a231794bacd5ad85 (diff) | |
download | blackbird-op-linux-b4d00d569a49fcef02195635dbf8d15904b1fb63.tar.gz blackbird-op-linux-b4d00d569a49fcef02195635dbf8d15904b1fb63.zip |
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.h | 2 |
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, |