Home
last modified time | relevance | path

Searched refs:objectid (Results 1 – 25 of 79) sorted by relevance

1234

/openbmc/linux/fs/btrfs/
H A Dexport.c37 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh()
38 fid->root_objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_encode_fh()
44 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh()
46 parent_root_id = BTRFS_I(parent)->root->root_key.objectid; in btrfs_encode_fh()
74 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, in btrfs_get_dentry() argument
81 if (objectid < BTRFS_FIRST_FREE_OBJECTID) in btrfs_get_dentry()
88 inode = btrfs_iget(sb, objectid, root); in btrfs_get_dentry()
105 u64 objectid, root_objectid; in btrfs_fh_to_parent() local
119 objectid = fid->parent_objectid; in btrfs_fh_to_parent()
122 return btrfs_get_dentry(sb, objectid, root_objectid, generation); in btrfs_fh_to_parent()
[all …]
H A Dfree-space-tree.c28 .objectid = BTRFS_FREE_SPACE_TREE_OBJECTID, in btrfs_free_space_root()
79 key.objectid = block_group->start; in add_new_free_space_info()
111 key.objectid = block_group->start; in search_free_space_info()
233 key.objectid = end - 1; in convert_free_space_to_bitmaps()
249 ASSERT(found_key.objectid == block_group->start); in convert_free_space_to_bitmaps()
256 ASSERT(found_key.objectid >= start); in convert_free_space_to_bitmaps()
257 ASSERT(found_key.objectid < end); in convert_free_space_to_bitmaps()
258 ASSERT(found_key.objectid + found_key.offset <= end); in convert_free_space_to_bitmaps()
260 first = div_u64(found_key.objectid - start, in convert_free_space_to_bitmaps()
262 last = div_u64(found_key.objectid + found_key.offset - start, in convert_free_space_to_bitmaps()
[all …]
H A Dtree-checker.c99 key.objectid, key.offset, &vaf); in file_extent_err()
159 key.objectid, &vaf); in dir_item_err()
194 if (key->objectid == prev_key->objectid) in check_prev_ino()
200 prev_key->objectid, key->objectid); in check_prev_ino()
324 prev_key->objectid == key->objectid && in check_extent_data_item()
350 if (unlikely(key->objectid != BTRFS_EXTENT_CSUM_OBJECTID)) { in check_csum_item()
353 key->objectid, BTRFS_EXTENT_CSUM_OBJECTID); in check_csum_item()
400 if (unlikely(key->objectid != 0 || key->type != 0 || in check_inode_key()
406 if (unlikely((key->objectid < BTRFS_FIRST_FREE_OBJECTID || in check_inode_key()
407 key->objectid > BTRFS_LAST_FREE_OBJECTID) && in check_inode_key()
[all …]
H A Dtree-log.c112 struct btrfs_path *path, u64 objectid);
143 static struct inode *btrfs_iget_logging(u64 objectid, struct btrfs_root *root) in btrfs_iget_logging() argument
156 inode = btrfs_iget(root->fs_info->sb, objectid, root); in btrfs_iget_logging()
416 ASSERT(root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID); in overwrite_item()
621 u64 objectid) in read_one_inode() argument
625 inode = btrfs_iget_logging(objectid, root); in read_one_inode()
684 inode = read_one_inode(root, key->objectid); in replay_one_extent()
753 ins.objectid = btrfs_file_extent_disk_bytenr(eb, item); in replay_one_extent()
772 if (ins.objectid > 0) { in replay_one_extent()
782 ret = btrfs_lookup_data_extent(fs_info, ins.objectid, in replay_one_extent()
[all …]
H A Drelocation.c675 struct btrfs_root *root, u64 objectid) in create_reloc_root() argument
689 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root()
691 root_key.offset = objectid; in create_reloc_root()
693 if (root->root_key.objectid == objectid) { in create_reloc_root()
737 if (root->root_key.objectid == objectid) { in create_reloc_root()
816 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in btrfs_init_reloc_root()
824 reloc_root = create_reloc_root(trans, root, root->root_key.objectid); in btrfs_init_reloc_root()
894 static struct inode *find_next_inode(struct btrfs_root *root, u64 objectid) in find_next_inode() argument
909 if (objectid < btrfs_ino(entry)) in find_next_inode()
911 else if (objectid > btrfs_ino(entry)) in find_next_inode()
[all …]
H A Dprint-tree.c37 if (key->objectid == BTRFS_TREE_RELOC_OBJECTID) { in btrfs_root_name()
44 if (root_map[i].id == key->objectid) in btrfs_root_name()
48 snprintf(buf, BTRFS_ROOT_NAME_BUF_LEN, "%llu", key->objectid); in btrfs_root_name()
235 i, key.objectid, type, key.offset, in btrfs_print_leaf()
249 found_key.objectid, in btrfs_print_leaf()
324 key.objectid, key.offset); in btrfs_print_leaf()
325 switch (key.objectid) { in btrfs_print_leaf()
335 key.objectid, key.offset); in btrfs_print_leaf()
336 switch (key.objectid) { in btrfs_print_leaf()
381 i, key.objectid, key.type, key.offset, in btrfs_print_tree()
H A Dfile-item.c163 u64 objectid, u64 pos, u64 num_bytes) in btrfs_insert_hole_extent() argument
174 file_key.objectid = objectid; in btrfs_insert_hole_extent()
219 file_key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csum()
259 struct btrfs_path *path, u64 objectid, in btrfs_lookup_file_extent() argument
266 file_key.objectid = objectid; in btrfs_lookup_file_extent()
437 if (inode->root->root_key.objectid == in btrfs_lookup_bio_sums()
484 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_list()
510 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_list()
532 if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_lookup_csums_list()
626 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_bitmap()
[all …]
H A Droot-tree.c95 if (found_key.objectid != search_key->objectid || in btrfs_find_root()
144 key->objectid, key->type, key->offset, in btrfs_update_root()
145 root->root_key.objectid); in btrfs_update_root()
224 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_roots()
250 if (key.objectid != BTRFS_ORPHAN_OBJECTID || in btrfs_find_orphan_roots()
295 if (drop_key.objectid != 0 || drop_key.type != 0 || in btrfs_find_orphan_roots()
350 key.objectid = root_id; in btrfs_del_root_ref()
380 key.objectid = ref_id; in btrfs_del_root_ref()
422 key.objectid = root_id; in btrfs_add_root_ref()
445 key.objectid = ref_id; in btrfs_add_root_ref()
H A Ddisk-io.c415 expect_key->objectid, in btrfs_validate_extent_buffer()
417 found_key.objectid, found_key.type, in btrfs_validate_extent_buffer()
622 u64 objectid) in __setup_root() argument
630 root->root_key.objectid = objectid; in __setup_root()
700 u64 objectid, gfp_t flags) in btrfs_alloc_root() argument
704 __setup_root(root, fs_info, objectid); in btrfs_alloc_root()
757 root->root_key.objectid, root->root_key.offset); in btrfs_global_root_insert()
810 .objectid = BTRFS_CSUM_TREE_OBJECTID, in btrfs_csum_root()
821 .objectid = BTRFS_EXTENT_TREE_OBJECTID, in btrfs_extent_root()
837 u64 objectid) in btrfs_create_tree() argument
[all …]
H A Ddir-item.c58 struct btrfs_path *path, u64 objectid, in btrfs_insert_xattr_item() argument
73 key.objectid = objectid; in btrfs_insert_xattr_item()
124 key.objectid = btrfs_ino(dir); in btrfs_insert_dir_item()
221 key.objectid = dir; in btrfs_lookup_dir_item()
248 key.objectid = dir; in btrfs_check_dir_item_collision()
316 key.objectid = dir; in btrfs_lookup_dir_index_item()
336 key.objectid = dirid; in btrfs_search_dir_index_item()
341 if (key.objectid != dirid || key.type != BTRFS_DIR_INDEX_KEY) in btrfs_search_dir_index_item()
365 key.objectid = dir; in btrfs_lookup_xattr()
H A Ddisk-io.h65 u64 objectid, bool check_ref);
67 u64 objectid, dev_t *anon_dev);
70 u64 objectid);
126 u64 objectid);
128 int btrfs_get_free_objectid(struct btrfs_root *root, u64 *objectid);
H A Dinode-item.c93 key.objectid = inode_objectid; in btrfs_lookup_inode_extref()
123 key.objectid = inode_objectid; in btrfs_del_inode_extref()
194 key.objectid = inode_objectid; in btrfs_del_inode_ref()
268 key.objectid = inode_objectid; in btrfs_insert_inode_extref()
322 key.objectid = inode_objectid; in btrfs_insert_inode_ref()
388 struct btrfs_path *path, u64 objectid) in btrfs_insert_empty_inode() argument
392 key.objectid = objectid; in btrfs_insert_empty_inode()
418 if (found_key.objectid == location->objectid && in btrfs_lookup_inode()
500 key.objectid = control->ino; in btrfs_truncate_inode_items()
537 if (found_key.objectid != control->ino) in btrfs_truncate_inode_items()
[all …]
H A Dextent-tree.c84 key.objectid = start; in btrfs_lookup_data_extent()
136 key.objectid = bytenr; in btrfs_lookup_extent_info()
153 if (key.objectid == bytenr && in btrfs_lookup_extent_info()
445 key.objectid = bytenr; in lookup_extent_data_ref()
484 if (key.objectid != bytenr || in lookup_extent_data_ref()
519 key.objectid = bytenr; in insert_extent_data_ref()
611 key.objectid, key.type, key.offset); in remove_extent_data_ref()
681 key.objectid = bytenr; in lookup_tree_block_ref()
705 key.objectid = bytenr; in insert_tree_block_ref()
796 key.objectid = bytenr; in lookup_inline_extent_backref()
[all …]
H A Dioctl.c603 u64 objectid; in create_subvol() local
610 ret = btrfs_get_free_objectid(fs_info->tree_root, &objectid); in create_subvol()
618 if (btrfs_qgroup_level(objectid)) { in create_subvol()
659 ret = btrfs_qgroup_inherit(trans, 0, objectid, inherit); in create_subvol()
663 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0, in create_subvol()
704 key.objectid = objectid; in create_subvol()
722 ret2 = btrfs_free_tree_block(trans, objectid, leaf, 0, 1); in create_subvol()
732 new_root = btrfs_get_new_fs_root(fs_info, objectid, &anon_dev); in create_subvol()
750 BTRFS_UUID_KEY_SUBVOL, objectid); in create_subvol()
1505 root->root_key.objectid); in btrfs_ioctl_subvol_setflags()
[all …]
H A Dbackref.c73 ret = ctx->indirect_ref_iterator(key->objectid, offset, in check_extent_in_eb()
86 e->inum = key->objectid; in check_extent_in_eb()
240 if (ref1->key_for_search.objectid < ref2->key_for_search.objectid) in prelim_ref_compare()
242 if (ref1->key_for_search.objectid > ref2->key_for_search.objectid) in prelim_ref_compare()
267 if (newref->root_id == sc->root->root_key.objectid && in update_share_count()
269 newref->key_for_search.objectid == sc->inum) in update_share_count()
524 if (key.objectid != key_for_search->objectid || in add_all_parents()
675 ref->key_for_search.objectid, ref->key_for_search.type, in resolve_indirect_ref()
775 if (sc && ref->root_id != sc->root->root_key.objectid) { in resolve_indirect_refs()
956 key.objectid = ref->objectid; in add_delayed_refs()
[all …]
H A Dinode.c159 key.objectid = inum; in data_reloc_print_warning_inode()
249 inode->root->root_key.objectid, btrfs_ino(inode), file_off, in print_data_reloc_error()
259 inode->root->root_key.objectid, in print_data_reloc_error()
305 ctx.bytenr = found_key.objectid; in print_data_reloc_error()
306 ctx.extent_item_pos = logical - found_key.objectid; in print_data_reloc_error()
326 if (root->root_key.objectid == BTRFS_DATA_RELOC_TREE_OBJECTID) in btrfs_print_data_csum_error()
331 if (root->root_key.objectid >= BTRFS_LAST_FREE_OBJECTID) { in btrfs_print_data_csum_error()
334 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
342 root->root_key.objectid, btrfs_ino(inode), in btrfs_print_data_csum_error()
530 key.objectid = btrfs_ino(inode); in insert_inline_extent()
[all …]
H A Dexport.h11 u64 objectid; member
21 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
H A Dqgroup.c389 key.objectid = 0; in btrfs_read_qgroup_config()
486 key.objectid = 0; in btrfs_read_qgroup_config()
500 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config()
506 ret = add_relation_rb(fs_info, found_key.objectid, in btrfs_read_qgroup_config()
511 found_key.objectid, found_key.offset); in btrfs_read_qgroup_config()
620 key.objectid = src; in add_qgroup_relation_item()
644 key.objectid = src; in del_qgroup_relation_item()
680 key.objectid = 0; in add_qgroup_item()
742 key.objectid = 0; in del_qgroup_item()
788 key.objectid = 0; in update_qgroup_limit_item()
[all …]
H A Dsend.c395 result_string, what, sctx->cmp_key->objectid, in inconsistent_snapshot_error()
396 sctx->send_root->root_key.objectid, in inconsistent_snapshot_error()
398 sctx->parent_root->root_key.objectid : 0)); in inconsistent_snapshot_error()
938 key.objectid = ino; in get_inode_info()
1081 found_key->objectid, in iterate_inode_ref()
1261 key.objectid = ino; in get_inode_path()
1273 if (found_key.objectid != ino || in get_inode_path()
1320 if (root < cr->root->root_key.objectid) in __clone_root_cmp_bsearch()
1322 if (root > cr->root->root_key.objectid) in __clone_root_cmp_bsearch()
1332 if (cr1->root->root_key.objectid < cr2->root->root_key.objectid) in __clone_root_cmp_sort()
[all …]
/openbmc/u-boot/fs/btrfs/
H A Dinode.c57 if (btrfs_find_root(location->objectid, &tmp_root, NULL)) in btrfs_lookup_inode()
60 location->objectid = tmp_root.root_dirid; in btrfs_lookup_inode()
94 key.objectid = inr; in btrfs_readlink()
147 if (root->objectid != btrfs_info.fs_root.objectid) { in get_parent_inode()
151 parent = btrfs_lookup_root_ref(root->objectid, &ref, in get_parent_inode()
163 key.objectid = inr; in get_parent_inode()
179 key.objectid = res; in get_parent_inode()
274 if (btrfs_readlink(root, item.location.objectid, in btrfs_lookup_path()
292 inr = item.location.objectid; in btrfs_lookup_path()
305 key.objectid = inr; in btrfs_lookup_path()
[all …]
H A Dctree.c14 if (a->objectid > b->objectid) in btrfs_comp_keys()
16 if (a->objectid < b->objectid) in btrfs_comp_keys()
31 if (a->objectid > b->objectid) in btrfs_comp_keys_type()
33 if (a->objectid < b->objectid) in btrfs_comp_keys_type()
H A Droot.c34 int btrfs_find_root(u64 objectid, struct btrfs_root *root, in btrfs_find_root() argument
40 if (!btrfs_search_tree_key_type(&btrfs_info.tree_root, objectid, in btrfs_find_root()
49 root->objectid = objectid; in btrfs_find_root()
/openbmc/linux/fs/btrfs/tests/
H A Dextent-buffer-tests.c60 key.objectid = 0; in test_btrfs_split_item()
90 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
114 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
145 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
168 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
191 if (key.objectid != 0 || key.type != BTRFS_EXTENT_CSUM_KEY || in test_btrfs_split_item()
H A Dqgroup-tests.c31 ins.objectid = bytenr; in insert_normal_tree_ref()
80 key.objectid = bytenr; in add_tree_ref()
103 key.objectid = bytenr; in add_tree_ref()
129 key.objectid = bytenr; in remove_extent_item()
162 key.objectid = bytenr; in remove_extent_ref()
185 key.objectid = bytenr; in remove_extent_ref()
492 root->root_key.objectid = BTRFS_EXTENT_TREE_OBJECTID; in btrfs_test_qgroups()
526 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups()
542 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()
/openbmc/u-boot/fs/reiserfs/
H A Dreiserfs.c520 search_stat (__u32 dir_id, __u32 objectid) in search_stat() argument
528 printf ("search_stat:\n key %d:%d:0:0\n", dir_id, objectid); in search_stat()
545 && (__le32_to_cpu(key->k_objectid) > objectid in search_stat()
546 || (__le32_to_cpu(key->k_objectid) == objectid in search_stat()
568 && __le32_to_cpu(ih->ih_key.k_objectid) == objectid in search_stat()
684 __u32 dir_id, objectid, parent_dir_id = 0, parent_objectid = 0; in reiserfs_dir() local
693 objectid = REISERFS_ROOT_OBJECTID; in reiserfs_dir()
702 if (! search_stat (dir_id, objectid)) in reiserfs_dir()
749 INFO->fileinfo.k_objectid = objectid; in reiserfs_dir()
768 objectid = REISERFS_ROOT_OBJECTID; in reiserfs_dir()
[all …]

1234