diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-07-03 21:25:12 +0800 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-07-03 14:06:54 -0400 |
commit | 615f2867854c186a37cb2e2e5a2e13e9ed4ab0df (patch) | |
tree | 352b945a98755713c8eb87fae9c58f7a9d32008a /disk-io.h | |
parent | d25aa23b0236418e891e1db66562035891a8faa8 (diff) |
Btrfs-progs: cleanup similar code in open_ctree_* and close_ctree
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'disk-io.h')
-rw-r--r-- | disk-io.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -47,6 +47,18 @@ int __setup_root(u32 nodesize, u32 leafsize, u32 sectorsize, struct btrfs_fs_info *fs_info, u64 objectid); int clean_tree_block(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf); + +void btrfs_free_fs_info(struct btrfs_fs_info *fs_info); +struct btrfs_fs_info *btrfs_new_fs_info(int writable, u64 sb_bytenr); +int btrfs_check_fs_compatibility(struct btrfs_super_block *sb, int writable); +int btrfs_setup_all_roots(struct btrfs_fs_info *fs_info, + u64 root_tree_bytenr, int partial); +void btrfs_release_all_roots(struct btrfs_fs_info *fs_info); +void btrfs_cleanup_all_caches(struct btrfs_fs_info *fs_info); +int btrfs_scan_fs_devices(int fd, const char *path, + struct btrfs_fs_devices **fs_devices); +int btrfs_setup_chunk_tree_and_device_map(struct btrfs_fs_info *fs_info); + struct btrfs_root *open_ctree(const char *filename, u64 sb_bytenr, int writes); struct btrfs_root *open_ctree_fd(int fp, const char *path, u64 sb_bytenr, int writes); |