Btrfs: make update_reserved_bytes() public
[firefly-linux-kernel-4.4.55.git] / fs / btrfs / ctree.h
index 8302ecd4197f6e5889fd9876bdfaab7f0bf28af7..9e21176cdf575a07e675551809b95c7f55a49037 100644 (file)
@@ -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,