| /u-boot/fs/btrfs/ |
| A D | disk-io.c | 364 return alloc_extent_buffer(fs_info, bytenr, fs_info->nodesize); in btrfs_find_create_tree_block() 580 root->fs_info = fs_info; in btrfs_setup_root() 758 free(fs_info); in btrfs_free_fs_info() 766 if (!fs_info) in btrfs_new_fs_info() 774 if (!fs_info->tree_root || !fs_info->chunk_root || in btrfs_new_fs_info() 775 !fs_info->csum_root || !fs_info->super_copy) in btrfs_new_fs_info() 785 return fs_info; in btrfs_new_fs_info() 828 ret = setup_root_or_create_block(fs_info, fs_info->csum_root, in btrfs_setup_all_roots() 839 fs_info->fs_root = btrfs_read_fs_root(fs_info, &key); in btrfs_setup_all_roots() 924 btrfs_setup_root(fs_info->chunk_root, fs_info, in btrfs_setup_chunk_tree_and_device_map() [all …]
|
| A D | disk-io.h | 15 struct extent_buffer* read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, 18 int read_extent_data(struct btrfs_fs_info *fs_info, char *data, u64 logical, 21 struct btrfs_fs_info *fs_info, u64 bytenr); 22 struct extent_buffer *btrfs_find_tree_block(struct btrfs_fs_info *fs_info, 24 struct btrfs_root *btrfs_read_fs_root_no_cache(struct btrfs_fs_info *fs_info, 26 struct btrfs_root *btrfs_read_fs_root(struct btrfs_fs_info *fs_info, 32 void btrfs_free_fs_info(struct btrfs_fs_info *fs_info); 35 int btrfs_setup_all_roots(struct btrfs_fs_info *fs_info); 36 void btrfs_release_all_roots(struct btrfs_fs_info *fs_info); 37 void btrfs_cleanup_all_caches(struct btrfs_fs_info *fs_info); [all …]
|
| A D | btrfs.c | 21 struct btrfs_fs_info *fs_info = root->fs_info; in show_dir() local 50 subvol = btrfs_read_fs_root(fs_info, &key); in show_dir() 79 target = malloc(fs_info->sectorsize); in show_dir() 122 struct btrfs_fs_info *fs_info; in btrfs_probe() local 127 if (fs_info) { in btrfs_probe() 128 current_fs_info = fs_info; in btrfs_probe() 136 struct btrfs_fs_info *fs_info = current_fs_info; in btrfs_ls() local 137 struct btrfs_root *root = fs_info->fs_root; in btrfs_ls() 142 ASSERT(fs_info); in btrfs_ls() 170 ASSERT(fs_info); in btrfs_exists() [all …]
|
| A D | volumes.h | 163 int __btrfs_map_block(struct btrfs_fs_info *fs_info, int rw, 167 int btrfs_map_block(struct btrfs_fs_info *fs_info, int rw, 173 static inline int btrfs_next_bg_metadata(struct btrfs_fs_info *fs_info, in btrfs_next_bg_metadata() argument 176 return btrfs_next_bg(fs_info, logical, size, in btrfs_next_bg_metadata() 179 static inline int btrfs_next_bg_system(struct btrfs_fs_info *fs_info, in btrfs_next_bg_system() argument 182 return btrfs_next_bg(fs_info, logical, size, in btrfs_next_bg_system() 185 int btrfs_read_sys_array(struct btrfs_fs_info *fs_info); 186 int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info); 190 int btrfs_num_copies(struct btrfs_fs_info *fs_info, u64 logical, u64 len); 197 int btrfs_check_chunk_valid(struct btrfs_fs_info *fs_info, [all …]
|
| A D | inode.c | 56 root->fs_info->sectorsize) { in btrfs_readlink() 122 struct btrfs_fs_info *fs_info = root->fs_info; in get_parent_inode() local 132 *root_ret = fs_info->fs_root; in get_parent_inode() 248 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_lookup_path() local 260 root = fs_info->fs_root; in btrfs_lookup_path() 312 target = malloc(fs_info->sectorsize); in btrfs_lookup_path() 419 struct btrfs_fs_info *fs_info = leaf->fs_info; in btrfs_read_extent_reg() local 616 struct btrfs_fs_info *fs_info = leaf->fs_info; in read_and_truncate_page() local 639 fs_info->sectorsize, buf); in read_and_truncate_page() 652 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_file_read() local [all …]
|
| A D | subvolume.c | 80 struct btrfs_fs_info *fs_info = root->fs_info; in list_one_subvol() local 81 struct btrfs_root *tree_root = fs_info->tree_root; in list_one_subvol() 138 root = btrfs_read_fs_root(fs_info, &location); in list_one_subvol() 158 static int list_subvolums(struct btrfs_fs_info *fs_info) in list_subvolums() argument 160 struct btrfs_root *tree_root = fs_info->tree_root; in list_subvolums() 171 ret = list_one_subvol(fs_info->fs_root, result); in list_subvolums() 174 root = fs_info->fs_root; in list_subvolums() 197 root = btrfs_read_fs_root(fs_info, &key); in list_subvolums() 226 struct btrfs_fs_info *fs_info = current_fs_info; in btrfs_list_subvols() local 229 if (!fs_info) in btrfs_list_subvols() [all …]
|
| A D | ctree.c | 188 BTRFS_LEAF_DATA_SIZE(fs_info)) { in btrfs_check_leaf() 199 BTRFS_LEAF_DATA_SIZE(fs_info)) { in btrfs_check_leaf() 205 fs_info)); in btrfs_check_leaf() 397 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_search_slot() local 427 ret = check_block(fs_info, p, level); in btrfs_search_slot() 463 b = read_node_slot(fs_info, b, slot); in btrfs_search_slot() 589 BUG_ON(leaf->fs_info && leaf->fs_info->nodesize != leaf->len); in btrfs_leaf_free_space() 611 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_prev_leaf() local 627 next = read_node_slot(fs_info, c, slot); in btrfs_prev_leaf() 687 next = read_node_slot(fs_info, c, slot); in btrfs_next_sibling_tree_block() [all …]
|
| A D | volumes.c | 360 cur_devices = fs_info->fs_devices; in btrfs_find_device() 396 u32 sectorsize = fs_info->sectorsize; in btrfs_check_chunk_valid() 407 BTRFS_LEAF_DATA_SIZE(fs_info)); in btrfs_check_chunk_valid() 577 &fs_info->fs_devices->devices); in read_one_chunk() 611 static int read_one_dev(struct btrfs_fs_info *fs_info, in read_one_dev() argument 640 &fs_info->fs_devices->devices); in read_one_dev() 644 fs_info->fs_devices->total_rw_bytes += in read_one_dev() 664 if (fs_info->nodesize < BTRFS_SUPER_INFO_SIZE) { in btrfs_read_sys_array() 666 fs_info->nodesize); in btrfs_read_sys_array() 746 struct btrfs_root *root = fs_info->chunk_root; in btrfs_read_chunk_tree() [all …]
|
| A D | extent-io.h | 87 struct btrfs_fs_info *fs_info; member 133 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, 136 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info,
|
| A D | extent-io.c | 584 eb->fs_info = info; in __alloc_extent_buffer() 594 new = __alloc_extent_buffer(src->fs_info, src->start, src->len); in btrfs_clone_extent_buffer() 608 struct extent_io_tree *tree = &eb->fs_info->extent_cache; in free_extent_buffer_final() 670 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, in alloc_extent_buffer() argument 674 struct extent_io_tree *tree = &fs_info->extent_cache; in alloc_extent_buffer() 690 eb = __alloc_extent_buffer(fs_info, bytenr, blocksize); in alloc_extent_buffer() 714 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, in alloc_dummy_extent_buffer() argument 719 ret = __alloc_extent_buffer(fs_info, bytenr, blocksize); in alloc_dummy_extent_buffer() 791 struct extent_io_tree *tree = &eb->fs_info->extent_cache; in set_extent_buffer_dirty() 802 struct extent_io_tree *tree = &eb->fs_info->extent_cache; in clear_extent_buffer_dirty()
|
| A D | ctree.h | 53 #define BTRFS_LEAF_DATA_SIZE(fs_info) \ argument 54 (__BTRFS_LEAF_DATA_SIZE(fs_info->nodesize)) 85 struct btrfs_fs_info *fs_info; member 140 BUG_ON(eb->fs_info && eb->fs_info->nodesize != eb->len); in BTRFS_NODEPTRS_PER_EXTENT_BUFFER() 1158 #define btrfs_fs_incompat(fs_info, opt) \ argument 1164 disk_super = fs_info->super_copy; in __btrfs_fs_incompat() 1168 #define btrfs_fs_compat_ro(fs_info, opt) \ argument 1174 disk_super = fs_info->super_copy; in __btrfs_fs_compat_ro() 1243 btrfs_check_node(struct btrfs_fs_info *fs_info, 1246 btrfs_check_leaf(struct btrfs_fs_info *fs_info, [all …]
|
| A D | dir-item.c | 30 BTRFS_MAX_XATTR_SIZE(root->fs_info)) { in verify_dir_item()
|