Searched refs:fs_info (Results 1 - 12 of 12) sorted by path

/u-boot/fs/btrfs/
H A Dbtrfs.c21 struct btrfs_fs_info *fs_info = root->fs_info; local
50 subvol = btrfs_read_fs_root(fs_info, &key);
79 target = malloc(fs_info->sectorsize);
122 struct btrfs_fs_info *fs_info; local
126 fs_info = open_ctree_fs_info(fs_dev_desc, fs_partition);
127 if (fs_info) {
128 current_fs_info = fs_info;
136 struct btrfs_fs_info *fs_info = current_fs_info; local
137 struct btrfs_root *root = fs_info
164 struct btrfs_fs_info *fs_info = current_fs_info; local
184 struct btrfs_fs_info *fs_info = current_fs_info; local
229 struct btrfs_fs_info *fs_info = current_fs_info; local
[all...]
H A Dctree.c100 btrfs_check_node(struct btrfs_fs_info *fs_info, argument
109 if (nritems == 0 || nritems > BTRFS_NODEPTRS_PER_BLOCK(fs_info))
131 btrfs_check_leaf(struct btrfs_fs_info *fs_info, argument
188 BTRFS_LEAF_DATA_SIZE(fs_info)) {
192 (unsigned)BTRFS_LEAF_DATA_SIZE(fs_info));
199 BTRFS_LEAF_DATA_SIZE(fs_info)) {
205 fs_info));
215 static int noinline check_block(struct btrfs_fs_info *fs_info, argument
229 ret = btrfs_check_leaf(fs_info, key_ptr, path->nodes[0]);
231 ret = btrfs_check_node(fs_info, key_pt
299 read_node_slot(struct btrfs_fs_info *fs_info, struct extent_buffer *parent, int slot) argument
397 struct btrfs_fs_info *fs_info = root->fs_info; local
611 struct btrfs_fs_info *fs_info = root->fs_info; local
665 btrfs_next_sibling_tree_block(struct btrfs_fs_info *fs_info, struct btrfs_path *path) argument
[all...]
H A Dctree.h52 #define BTRFS_LEAF_DATA_SIZE(fs_info) \
53 (__BTRFS_LEAF_DATA_SIZE(fs_info->nodesize))
84 struct btrfs_fs_info *fs_info; member in struct:btrfs_root
139 BUG_ON(eb->fs_info && eb->fs_info->nodesize != eb->len);
1157 #define btrfs_fs_incompat(fs_info, opt) \
1158 __btrfs_fs_incompat((fs_info), BTRFS_FEATURE_INCOMPAT_##opt)
1160 static inline bool __btrfs_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag) argument
1163 disk_super = fs_info->super_copy;
1167 #define btrfs_fs_compat_ro(fs_info, op
1170 __btrfs_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag) argument
[all...]
H A Ddir-item.c30 BTRFS_MAX_XATTR_SIZE(root->fs_info)) {
H A Ddisk-io.c33 static int check_tree_block(struct btrfs_fs_info *fs_info,
37 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices;
38 u32 nodesize = fs_info->nodesize;
61 if (fs_devices == fs_info->fs_devices &&
62 btrfs_fs_incompat(fs_info, METADATA_UUID))
83 static void print_tree_block_error(struct btrfs_fs_info *fs_info,
100 uuid_unparse(fs_info->fs_devices->metadata_uuid, fs_uuid);
348 static int csum_tree_block(struct btrfs_fs_info *fs_info,
351 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy);
352 u16 csum_type = btrfs_super_csum_type(fs_info
32 check_tree_block(struct btrfs_fs_info *fs_info, struct extent_buffer *buf) argument
82 print_tree_block_error(struct btrfs_fs_info *fs_info, struct extent_buffer *eb, int err) argument
347 csum_tree_block(struct btrfs_fs_info *fs_info, struct extent_buffer *buf, int verify) argument
356 btrfs_find_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, u32 blocksize) argument
363 btrfs_find_create_tree_block( struct btrfs_fs_info *fs_info, u64 bytenr) argument
444 read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, u64 parent_transid) argument
540 read_extent_data(struct btrfs_fs_info *fs_info, char *data, u64 logical, u64 *len, int mirror) argument
581 btrfs_setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, u64 objectid) argument
597 find_and_setup_root(struct btrfs_root *tree_root, struct btrfs_fs_info *fs_info, u64 objectid, struct btrfs_root *root) argument
637 btrfs_read_fs_root_no_cache(struct btrfs_fs_info *fs_info, struct btrfs_key *location) argument
728 btrfs_read_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_key *location) argument
759 btrfs_free_fs_info(struct btrfs_fs_info *fs_info) argument
770 struct btrfs_fs_info *fs_info; local
796 setup_root_or_create_block(struct btrfs_fs_info *fs_info, struct btrfs_root *info_root, u64 objectid, char *str) argument
812 get_default_subvolume(struct btrfs_fs_info *fs_info, struct btrfs_key *key_ret) argument
836 btrfs_setup_all_roots(struct btrfs_fs_info *fs_info) argument
883 btrfs_release_all_roots(struct btrfs_fs_info *fs_info) argument
903 btrfs_cleanup_all_caches(struct btrfs_fs_info *fs_info) argument
958 btrfs_setup_chunk_tree_and_device_map(struct btrfs_fs_info *fs_info) argument
994 struct btrfs_fs_info *fs_info; local
1070 close_ctree_fs_info(struct btrfs_fs_info *fs_info) argument
[all...]
H A Ddisk-io.h15 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,
29 void btrfs_setup_root(struct btrfs_root *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);
[all...]
H A Dextent-io.c584 eb->fs_info = info;
594 new = __alloc_extent_buffer(src->fs_info, src->start, src->len);
608 struct extent_io_tree *tree = &eb->fs_info->extent_cache;
670 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, argument
674 struct extent_io_tree *tree = &fs_info->extent_cache;
690 eb = __alloc_extent_buffer(fs_info, bytenr, blocksize);
714 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, argument
719 ret = __alloc_extent_buffer(fs_info, bytenr, blocksize);
791 struct extent_io_tree *tree = &eb->fs_info->extent_cache;
802 struct extent_io_tree *tree = &eb->fs_info
[all...]
H A Dextent-io.h87 struct btrfs_fs_info *fs_info; member in struct:extent_buffer
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,
H A Dinode.c56 root->fs_info->sectorsize) {
71 static int lookup_root_ref(struct btrfs_fs_info *fs_info, argument
74 struct btrfs_root *root = fs_info->tree_root;
122 struct btrfs_fs_info *fs_info = root->fs_info; local
132 *root_ret = fs_info->fs_root;
137 ret = lookup_root_ref(fs_info, root->root_key.objectid,
145 *root_ret = btrfs_read_fs_root(fs_info, &key);
248 struct btrfs_fs_info *fs_info = root->fs_info; local
425 struct btrfs_fs_info *fs_info = leaf->fs_info; local
627 struct btrfs_fs_info *fs_info = leaf->fs_info; local
663 struct btrfs_fs_info *fs_info = root->fs_info; local
[all...]
H A Dsubvolume.c80 struct btrfs_fs_info *fs_info = root->fs_info; local
81 struct btrfs_root *tree_root = fs_info->tree_root;
138 root = btrfs_read_fs_root(fs_info, &location);
158 static int list_subvolums(struct btrfs_fs_info *fs_info) argument
160 struct btrfs_root *tree_root = fs_info->tree_root;
171 ret = list_one_subvol(fs_info->fs_root, result);
174 root = fs_info->fs_root;
197 root = btrfs_read_fs_root(fs_info, &key);
227 struct btrfs_fs_info *fs_info local
[all...]
H A Dvolumes.c354 struct btrfs_device *btrfs_find_device(struct btrfs_fs_info *fs_info, u64 devid, argument
360 cur_devices = fs_info->fs_devices;
385 int btrfs_check_chunk_valid(struct btrfs_fs_info *fs_info, argument
396 u32 sectorsize = fs_info->sectorsize;
407 BTRFS_LEAF_DATA_SIZE(fs_info));
515 static int read_one_chunk(struct btrfs_fs_info *fs_info, struct btrfs_key *key, argument
519 struct btrfs_mapping_tree *map_tree = &fs_info->mapping_tree;
534 ret = btrfs_check_chunk_valid(fs_info, leaf, chunk, slot, logical);
570 map->stripes[i].dev = btrfs_find_device(fs_info, devid, uuid,
577 &fs_info
611 read_one_dev(struct btrfs_fs_info *fs_info, struct extent_buffer *leaf, struct btrfs_dev_item *dev_item) argument
649 btrfs_read_sys_array(struct btrfs_fs_info *fs_info) argument
740 btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info) argument
808 btrfs_stripe_length(struct btrfs_fs_info *fs_info, struct extent_buffer *leaf, struct btrfs_chunk *chunk) argument
848 btrfs_num_copies(struct btrfs_fs_info *fs_info, u64 logical, u64 len) argument
886 btrfs_next_bg(struct btrfs_fs_info *fs_info, u64 *logical, u64 *size, u64 type) argument
951 __btrfs_map_block(struct btrfs_fs_info *fs_info, int rw, u64 logical, u64 *length, u64 *type, struct btrfs_multi_bio **multi_ret, int mirror_num, u64 **raid_map_ret) argument
1168 btrfs_map_block(struct btrfs_fs_info *fs_info, int rw, u64 logical, u64 *length, struct btrfs_multi_bio **multi_ret, int mirror_num, u64 **raid_map_ret) argument
[all...]
H A Dvolumes.h163 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, argument
176 return btrfs_next_bg(fs_info, logical, size,
179 static inline int btrfs_next_bg_system(struct btrfs_fs_info *fs_info, argument
182 return btrfs_next_bg(fs_info, logical, size,
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);
195 struct btrfs_device *btrfs_find_device(struct btrfs_fs_info *fs_info, u6
[all...]

Completed in 263 milliseconds