| /linux/fs/btrfs/ |
| H A D | export.c | 40 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh() 79 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, in btrfs_get_dentry() argument 86 if (objectid < BTRFS_FIRST_FREE_OBJECTID) in btrfs_get_dentry() 93 inode = btrfs_iget(objectid, root); in btrfs_get_dentry() 110 u64 objectid, root_objectid; in btrfs_fh_to_parent() local 124 objectid = fid->parent_objectid; in btrfs_fh_to_parent() 127 return btrfs_get_dentry(sb, objectid, root_objectid, generation); in btrfs_fh_to_parent() 134 u64 objectid, root_objectid; in btrfs_fh_to_dentry() local 145 objectid = fid->objectid; in btrfs_fh_to_dentry() 149 return btrfs_get_dentry(sb, objectid, root_objectid, generation); in btrfs_fh_to_dentry() [all …]
|
| H A D | free-space-tree.c | 27 .objectid = BTRFS_FREE_SPACE_TREE_OBJECTID, in btrfs_free_space_root() 78 key.objectid = block_group->start; in add_new_free_space_info() 105 key.objectid = block_group->start; in btrfs_search_free_space_info() 224 key.objectid = end - 1; in btrfs_convert_free_space_to_bitmaps() 242 ASSERT(found_key.objectid == block_group->start); in btrfs_convert_free_space_to_bitmaps() 249 ASSERT(found_key.objectid >= start); in btrfs_convert_free_space_to_bitmaps() 250 ASSERT(found_key.objectid < end); in btrfs_convert_free_space_to_bitmaps() 251 ASSERT(found_key.objectid + found_key.offset <= end); in btrfs_convert_free_space_to_bitmaps() 253 first = div_u64(found_key.objectid - start, in btrfs_convert_free_space_to_bitmaps() 255 last = div_u64(found_key.objectid + found_key.offset - start, in btrfs_convert_free_space_to_bitmaps() [all …]
|
| H A D | tree-checker.c | 77 * Customized reporter for extent data item, since its key objectid and 101 key.objectid, key.offset, &vaf); in file_extent_err() 140 * key->objectid, which represents inode number 163 key.objectid, &vaf); in dir_item_err() 174 * This functions checks prev_key->objectid, to ensure current key and prev_key 175 * share the same objectid as inode number. in check_prev_ino() 205 if (key->objectid == prev_key->objectid) in check_prev_ino() 210 "invalid previous key objectid, have %llu expect %llu", in check_extent_data_item() 211 prev_key->objectid, ke in check_extent_data_item() 1852 u64 objectid; check_extent_data_ref() local [all...] |
| H A D | tree-log.c | 221 static int link_to_fixup_dir(struct walk_control *wc, u64 objectid); 249 static struct btrfs_inode *btrfs_iget_logging(u64 objectid, struct btrfs_root *root) in btrfs_iget_logging() argument 265 inode = btrfs_iget(objectid, root); in btrfs_iget_logging() 725 wc->log_key.objectid, wc->log_key.offset); in replay_one_extent() 729 inode = btrfs_iget_logging(wc->log_key.objectid, root); in replay_one_extent() 734 wc->log_key.objectid, btrfs_root_id(root)); in replay_one_extent() 777 wc->log_key.objectid, start, extent_end, in replay_one_extent() 825 ins.objectid = btrfs_file_extent_disk_bytenr(wc->log_leaf, item); in replay_one_extent() 837 ret = btrfs_qgroup_trace_extent(trans, ins.objectid, ins.offset); in replay_one_extent() 841 ins.objectid, in in replay_one_extent() 1108 inode_in_dir(struct btrfs_root * root,struct btrfs_path * path,u64 dirid,u64 objectid,u64 index,struct fscrypt_str * name) inode_in_dir() argument 1961 link_to_fixup_dir(struct walk_control * wc,u64 objectid) link_to_fixup_dir() argument [all...] |
| H A D | uuid-tree.c | 21 key->objectid = get_unaligned_le64(uuid); in btrfs_uuid_to_key() 121 ret, key.objectid, key.offset, type); in btrfs_uuid_tree_add() 310 key.objectid = 0; in btrfs_uuid_tree_iterate() 347 put_unaligned_le64(key.objectid, uuid); in btrfs_uuid_tree_iterate() 411 key.objectid = 0; in btrfs_uuid_scan_kthread() 429 (key.objectid < BTRFS_FIRST_FREE_OBJECTID && in btrfs_uuid_scan_kthread() 430 key.objectid != BTRFS_FS_TREE_OBJECTID) || in btrfs_uuid_scan_kthread() 431 key.objectid > BTRFS_LAST_FREE_OBJECTID) in btrfs_uuid_scan_kthread() 470 key.objectid); in btrfs_uuid_scan_kthread() 482 key.objectid); in btrfs_uuid_scan_kthread() [all …]
|
| H A D | relocation.c | 634 struct btrfs_root *root, u64 objectid) in create_reloc_root() argument 647 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID; in create_reloc_root() 649 root_key.offset = objectid; in create_reloc_root() 651 if (btrfs_root_id(root) == objectid) { in create_reloc_root() 668 objectid, BTRFS_KEY_FMT_VALUE(&cpu_key)); in create_reloc_root() 712 if (btrfs_root_id(root) == objectid) { in create_reloc_root() 741 * snapshot of the fs tree with special root objectid. 987 inode = btrfs_find_first_inode(root, key.objectid); in replace_file_extents() 989 } else if (inode && btrfs_ino(inode) < key.objectid) { in replace_file_extents() 991 inode = btrfs_find_first_inode(root, key.objectid); in replace_file_extents() 1414 u64 objectid; invalidate_extent_cache() local 3790 __insert_orphan_inode(struct btrfs_trans_handle * trans,struct btrfs_root * root,u64 objectid) __insert_orphan_inode() argument 3817 delete_orphan_inode(struct btrfs_trans_handle * trans,struct btrfs_root * root,u64 objectid) delete_orphan_inode() argument 3855 u64 objectid; create_reloc_inode() local [all...] |
| H A D | disk-io.h | 72 u64 objectid, bool check_ref); 74 u64 objectid, dev_t *anon_dev); 77 u64 objectid); 146 u64 objectid); 148 int btrfs_get_free_objectid(struct btrfs_root *root, u64 *objectid);
|
| H A D | file-item.c | 161 u64 objectid, u64 pos, u64 num_bytes) in btrfs_insert_hole_extent() argument 173 file_key.objectid = objectid; in btrfs_insert_hole_extent() 214 file_key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csum() 254 struct btrfs_path *path, u64 objectid, in btrfs_lookup_file_extent() argument 261 file_key.objectid = objectid; in btrfs_lookup_file_extent() 537 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_list() 563 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_list() 585 if (key.objectid ! in btrfs_lookup_csums_list() [all...] |
| H A D | root-tree.c | 63 * given objectid. 102 if (found_key.objectid != search_key->objectid || in btrfs_find_root() 225 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_roots() 250 if (key.objectid != BTRFS_ORPHAN_OBJECTID || in btrfs_find_orphan_roots() 293 if (drop_key.objectid != 0 || drop_key.type != 0 || in btrfs_find_orphan_roots() 345 key.objectid = root_id; in btrfs_del_root_ref() 373 key.objectid = ref_id; in btrfs_del_root_ref() 413 key.objectid = root_id; in btrfs_add_root_ref() 434 key.objectid in btrfs_add_root_ref() [all...] |
| H A D | raid-stripe-tree.c | 27 .objectid = oldkey->objectid + frontpad, in btrfs_partially_delete_raid_extent() 99 key.objectid = start; in btrfs_delete_raid_extent() 125 found_start = key.objectid; in btrfs_delete_raid_extent() 155 found_start = key.objectid; in btrfs_delete_raid_extent() 190 .objectid = end, in btrfs_delete_raid_extent() 356 stripe_key.objectid = bioc->logical; in btrfs_insert_one_raid_extent() 430 stripe_key.objectid = logical; in btrfs_get_raid_extent_offset() 456 found_logical = found_key.objectid; in btrfs_get_raid_extent_offset()
|
| H A D | disk-io.c | 443 expect_key->objectid, in btrfs_validate_extent_buffer() 445 found_key.objectid, found_key.type, in btrfs_validate_extent_buffer() 643 u64 objectid, gfp_t flags) in btrfs_alloc_root() 652 root->root_key.objectid = objectid; in btrfs_alloc_root() 807 .objectid = BTRFS_CSUM_TREE_OBJECTID, in btrfs_extent_root() 818 .objectid = BTRFS_EXTENT_TREE_OBJECTID, in btrfs_create_tree() argument 827 u64 objectid) in btrfs_create_tree() 841 root = btrfs_alloc_root(fs_info, objectid, GFP_KERNEL); in btrfs_create_tree() 846 root->root_key.objectid in btrfs_create_tree() 634 btrfs_alloc_root(struct btrfs_fs_info * fs_info,u64 objectid,gfp_t flags) btrfs_alloc_root() argument 1132 btrfs_get_global_root(struct btrfs_fs_info * fs_info,u64 objectid) btrfs_get_global_root() argument 1280 btrfs_get_root_ref(struct btrfs_fs_info * fs_info,u64 objectid,dev_t * anon_dev,bool check_ref) btrfs_get_root_ref() argument 1384 btrfs_get_fs_root(struct btrfs_fs_info * fs_info,u64 objectid,bool check_ref) btrfs_get_fs_root() argument 1398 btrfs_get_new_fs_root(struct btrfs_fs_info * fs_info,u64 objectid,dev_t * anon_dev) btrfs_get_new_fs_root() argument 1420 btrfs_get_fs_root_commit_root(struct btrfs_fs_info * fs_info,struct btrfs_path * path,u64 objectid) btrfs_get_fs_root_commit_root() argument 2079 load_global_roots_objectid(struct btrfs_root * tree_root,struct btrfs_path * path,u64 objectid,const char * name) load_global_roots_objectid() argument 5083 btrfs_get_free_objectid(struct btrfs_root * root,u64 * objectid) btrfs_get_free_objectid() argument [all...] |
| H A D | print-tree.c | 48 if (key->objectid == BTRFS_TREE_RELOC_OBJECTID) { in btrfs_root_name() 55 if (root_map[i].id == key->objectid) in btrfs_root_name() 59 snprintf(buf, BTRFS_ROOT_NAME_BUF_LEN, "%llu", key->objectid); in btrfs_root_name() 424 if (key->type == 0 && key->objectid == BTRFS_FREE_SPACE_OBJECTID) in key_type_string() 464 i, key.objectid, key_buf, key.offset, in btrfs_print_leaf() 545 key.objectid, key.offset); in btrfs_print_leaf() 546 switch (key.objectid) { in btrfs_print_leaf() 556 key.objectid, key.offset); in btrfs_print_leaf() 557 switch (key.objectid) { in btrfs_print_leaf()
|
| H A D | export.h | 15 u64 objectid; member 25 struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
|
| H A D | ref-verify.c | 117 const u64 *objectid = key; in root_entry_root_objectid_key_cmp() local 120 if (entry->root_objectid < *objectid) in root_entry_root_objectid_key_cmp() 122 else if (entry->root_objectid > *objectid) in root_entry_root_objectid_key_cmp() 182 static struct root_entry *lookup_root_entry(struct rb_root *root, u64 objectid) in lookup_root_entry() argument 186 node = rb_find(&objectid, root, root_entry_root_objectid_key_cmp); in lookup_root_entry() 453 ret = add_tree_block(fs_info, offset, 0, key->objectid, in process_extent_item() 457 ret = add_tree_block(fs_info, 0, offset, key->objectid, in process_extent_item() 463 key->objectid, key->offset); in process_extent_item() 469 key->objectid, key->offset); in process_extent_item() 510 *bytenr = key.objectid; in process_leaf() [all …]
|
| H A D | backref.c | 73 ret = ctx->indirect_ref_iterator(key->objectid, offset, in check_extent_in_eb() 86 e->inum = key->objectid; in check_extent_in_eb() 237 if (ref1->key_for_search.objectid < ref2->key_for_search.objectid) in prelim_ref_compare() 239 if (ref1->key_for_search.objectid > ref2->key_for_search.objectid) in prelim_ref_compare() 281 newref->key_for_search.objectid == sc->inum) in update_share_count() 520 if (key.objectid != key_for_search->objectid || in add_all_parents() 944 key.objectid in add_delayed_refs() [all...] |
| H A D | orphan.c | 15 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_insert_orphan_item() 33 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_del_orphan_item()
|
| H A D | send.c | 403 result_string, what, sctx->cmp_key->objectid, in inconsistent_snapshot_error() 925 key.objectid = ino; in get_inode_info() 1227 key.objectid = ino; in get_inode_path() 1238 if (found_key.objectid != ino || in get_inode_path() 1715 key.objectid = ino; in read_symlink() 1949 *found_inode = key.objectid; in lookup_dir_item_inode() 1972 key.objectid = ino; in get_first_ref() 1982 if (ret || found_key.objectid != ino || in get_first_ref() 2456 key.objectid = btrfs_root_id(send_root); in send_subvol_begin() 2470 key.objectid ! in send_subvol_begin() [all...] |
| H A D | ioctl.c | 587 u64 objectid; in create_subvol() 594 ret = btrfs_get_free_objectid(fs_info->tree_root, &objectid); in create_subvol() 602 if (btrfs_qgroup_level(objectid)) in create_subvol() 636 ret = btrfs_qgroup_inherit(trans, 0, objectid, btrfs_root_id(root), inherit); in create_subvol() 640 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0, in create_subvol() 681 key.objectid = objectid; in create_subvol() 699 ret2 = btrfs_free_tree_block(trans, objectid, leaf, 0, 1); in create_subvol() 709 new_root = btrfs_get_new_fs_root(fs_info, objectid, &anon_dev); in create_subvol() 727 BTRFS_UUID_KEY_SUBVOL, objectid); in create_subvol() 574 u64 objectid; create_subvol() local 2150 u64 objectid; btrfs_ioctl_get_subvol_rootref() local 2805 u64 objectid = 0; btrfs_ioctl_default_subvol() local [all...] |
| H A D | inode.c | 146 key.objectid = inum; in data_reloc_print_warning_inode() 293 ctx.bytenr = found_key.objectid; in print_data_reloc_error() 294 ctx.extent_item_pos = logical - found_key.objectid; in print_data_reloc_error() 318 /* Output without objectid, which is more meaningful */ in btrfs_print_data_csum_error() 476 key.objectid = btrfs_ino(inode); in insert_inline_extent() 1077 file_extent.disk_bytenr = ins.objectid; in submit_one_async_extent() 1084 async_extent->cb->bbio.bio.bi_iter.bi_sector = ins.objectid >> SECTOR_SHIFT; in submit_one_async_extent() 1101 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_one_async_extent() 1110 *alloc_hint = ins.objectid + ins.offset; in submit_one_async_extent() 1118 btrfs_dec_block_group_reservations(fs_info, ins.objectid); in submit_one_async_extent() 3945 acls_after_inode_item(struct extent_buffer * leaf,int slot,u64 objectid,int * first_xattr_slot) acls_after_inode_item() argument 4614 u64 objectid; btrfs_unlink_subvol() local 6642 u64 objectid; btrfs_create_new_inode() local 7244 u64 objectid = btrfs_ino(inode); btrfs_get_extent() local [all...] |
| H A D | extent-tree.c | 88 key.objectid = start; in btrfs_lookup_data_extent() 132 key.objectid = bytenr; in btrfs_lookup_extent_info() 155 if (key.objectid == bytenr && in btrfs_lookup_extent_info() 288 * The key objectid corresponds to the first byte in the extent, 302 * - objectid of the file holding the reference 319 * (root_key.objectid, inode objectid, offset in file, 1) 324 * (btrfs_header_owner(leaf), inode objectid, offset in file) 332 * objectid of block's owner tree. The key offset for the full back refs 457 key.objectid in lookup_extent_data_ref() [all...] |
| H A D | qgroup.c | 449 key.objectid = 0; in btrfs_read_qgroup_config() 568 key.objectid = 0; in btrfs_read_qgroup_config() 584 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config() 595 ret = add_relation_rb(fs_info, list, found_key.objectid, in btrfs_read_qgroup_config() 601 found_key.objectid, found_key.offset); in btrfs_read_qgroup_config() 705 key.objectid = src; in add_qgroup_relation_item() 724 key.objectid = src; in del_qgroup_relation_item() 755 key.objectid = 0; in add_qgroup_item() 810 key.objectid = 0; in del_qgroup_item() 848 key.objectid in update_qgroup_limit_item() 3345 btrfs_qgroup_inherit(struct btrfs_trans_handle * trans,u64 srcid,u64 objectid,u64 inode_rootid,struct btrfs_qgroup_inherit * inherit) btrfs_qgroup_inherit() argument [all...] |
| H A D | fiemap.c | 335 if (key.objectid != btrfs_ino(inode) || key.type != BTRFS_EXTENT_DATA_KEY) { in fiemap_next_leaf_item() 380 key.objectid = ino; in fiemap_search_slot() 390 if (key.objectid == ino && key.type == BTRFS_EXTENT_DATA_KEY) in fiemap_search_slot() 400 if (key.objectid != ino || key.type != BTRFS_EXTENT_DATA_KEY) in fiemap_search_slot() 587 if (key.objectid != ino || key.type != BTRFS_EXTENT_DATA_KEY) { in fiemap_find_last_extent_offset() 700 if (key.objectid != ino || key.type != BTRFS_EXTENT_DATA_KEY) in extent_fiemap()
|
| H A D | verity.c | 42 * [ inode objectid, BTRFS_VERITY_DESC_ITEM_KEY, offset ] 51 * [ inode objectid, BTRFS_VERITY_MERKLE_ITEM_KEY, offset ] 143 * isn't from our key type or objectid in drop_verity_items() 145 key.objectid = btrfs_ino(inode); in drop_verity_items() 164 if (key.objectid != btrfs_ino(inode) || key.type != key_type) in drop_verity_items() 248 key.objectid = btrfs_ino(inode); in write_key_bytes() 326 key.objectid = btrfs_ino(inode); in read_key_bytes() 344 if (key.objectid != btrfs_ino(inode) || key.type != key_type) in read_key_bytes() 767 * [ inode objectid, BTRFS_MERKLE_ITEM_KEY, offset in bytes ] in btrfs_read_merkle_tree_page()
|
| /linux/fs/btrfs/tests/ |
| H A D | extent-buffer-tests.c | 60 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 D | qgroup-tests.c | 31 ins.objectid = bytenr; in insert_normal_tree_ref() 78 key.objectid = bytenr; in add_tree_ref() 100 key.objectid = bytenr; in add_tree_ref() 125 key.objectid = bytenr; in remove_extent_item() 156 key.objectid = bytenr; in remove_extent_ref() 178 key.objectid = bytenr; in remove_extent_ref() 483 root->root_key.objectid = BTRFS_EXTENT_TREE_OBJECTID; in btrfs_test_qgroups() 517 tmp_root->root_key.objectid = BTRFS_FS_TREE_OBJECTID; in btrfs_test_qgroups() 533 tmp_root->root_key.objectid = BTRFS_FIRST_FREE_OBJECTID; in btrfs_test_qgroups()
|