summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-07-07 16:15:27 +0800
committerDavid Sterba <dsterba@suse.com>2015-07-10 14:39:39 +0200
commit80fc1e0fc61f0929fee545917127a0585dfdacf9 (patch)
tree3f85c3664bf595b1c92ddbc28c1b5ffad0ee9a88 /ctree.h
parent00827cad8e36a6f55d344c92a15fb4cd3c596378 (diff)
btrfs-progs: extent-tree: Introduce btrfs_free_block_group function
This function will be used to free a empty chunk. This provides the basis for later temp chunk cleanup. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index f14a7959..5550d453 100644
--- a/ctree.h
+++ b/ctree.h
@@ -2275,6 +2275,8 @@ int btrfs_record_file_extent(struct btrfs_trans_handle *trans,
struct btrfs_inode_item *inode,
u64 file_pos, u64 disk_bytenr,
u64 num_bytes);
+int btrfs_free_block_group(struct btrfs_trans_handle *trans,
+ struct btrfs_fs_info *fs_info, u64 bytenr, u64 len);
/* ctree.c */
int btrfs_comp_cpu_keys(struct btrfs_key *k1, struct btrfs_key *k2);
int btrfs_del_ptr(struct btrfs_trans_handle *trans, struct btrfs_root *root,