summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2016-01-29 13:03:32 +0800
committerDavid Sterba <dsterba@suse.com>2016-06-07 18:15:19 +0200
commitcfdcb4fa616cb7cef3f11e266ac57adba9079ac0 (patch)
tree2aa36ee6771b59894c4e4906344e4669acf0f364 /ctree.h
parent561f773433129acf5ba2bdd9abd85876f5d098ce (diff)
btrfs-progs: Cleanup old btrfs-convert
Cleanup all the old btrfs-convert facilities, including: 1) btrfs_convert_operations->alloc/free/test_extents* No need to do non-standard extent allocation. After init_btrfs() everything can be done by normal routine. Now only 4 functions are needed in btrfs_convert_operations. 1) open_fs 2) read_used_space 3) copy_inodes 4) close_fs 2) fs_info->extent_ops Same as above. 3) Old init_btrfs(), create_image(), create_file_image_range() Replaced with newer and cleaner one. 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.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/ctree.h b/ctree.h
index c1534fa3..9e3626f1 100644
--- a/ctree.h
+++ b/ctree.h
@@ -960,13 +960,6 @@ struct btrfs_block_group_cache {
int ro;
};
-struct btrfs_extent_ops {
- int (*alloc_extent)(struct btrfs_root *root, u64 num_bytes,
- u64 hint_byte, struct btrfs_key *ins, int metadata);
- int (*free_extent)(struct btrfs_root *root, u64 bytenr,
- u64 num_bytes);
-};
-
struct btrfs_device;
struct btrfs_fs_devices;
struct btrfs_fs_info {
@@ -1017,7 +1010,6 @@ struct btrfs_fs_info {
u64 super_bytenr;
u64 total_pinned;
- struct btrfs_extent_ops *extent_ops;
struct list_head dirty_cowonly_roots;
struct list_head recow_ebs;