Home
last modified time | relevance | path

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

12

/fs/btrfs/
Dexport.c35 fid->objectid = btrfs_ino(inode); in btrfs_encode_fh()
36 fid->root_objectid = BTRFS_I(inode)->root->objectid; in btrfs_encode_fh()
46 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh()
48 parent_root_id = BTRFS_I(parent)->root->objectid; in btrfs_encode_fh()
66 static struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, in btrfs_get_dentry() argument
77 if (objectid < BTRFS_FIRST_FREE_OBJECTID) in btrfs_get_dentry()
80 key.objectid = root_objectid; in btrfs_get_dentry()
97 key.objectid = objectid; in btrfs_get_dentry()
124 u64 objectid, root_objectid; in btrfs_fh_to_parent() local
138 objectid = fid->parent_objectid; in btrfs_fh_to_parent()
[all …]
Dinode-map.c53 key.objectid = BTRFS_FIRST_FREE_OBJECTID; in caching_kthread()
105 if (key.objectid >= root->highest_objectid) in caching_kthread()
108 if (last != (u64)-1 && last + 1 != key.objectid) { in caching_kthread()
110 key.objectid - last - 1); in caching_kthread()
114 last = key.objectid; in caching_kthread()
144 u64 objectid; in start_caching() local
173 ret = btrfs_find_free_objectid(root, &objectid); in start_caching()
174 if (!ret && objectid <= BTRFS_LAST_FREE_OBJECTID) { in start_caching()
175 __btrfs_add_free_space(ctl, objectid, in start_caching()
176 BTRFS_LAST_FREE_OBJECTID - objectid + 1); in start_caching()
[all …]
Droot-tree.c29 int btrfs_find_last_root(struct btrfs_root *root, u64 objectid, in btrfs_find_last_root() argument
39 search_key.objectid = objectid; in btrfs_find_last_root()
58 if (found_key.objectid != objectid || in btrfs_find_last_root()
108 (unsigned long long)key->objectid, key->type, in btrfs_update_root()
135 int btrfs_find_dead_roots(struct btrfs_root *root, u64 objectid) in btrfs_find_dead_roots() argument
147 key.objectid = objectid; in btrfs_find_dead_roots()
174 if (key.objectid < objectid) in btrfs_find_dead_roots()
177 if (key.objectid > objectid) in btrfs_find_dead_roots()
223 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_roots()
250 if (key.objectid != BTRFS_ORPHAN_OBJECTID || in btrfs_find_orphan_roots()
[all …]
Dtree-log.c99 struct btrfs_path *path, u64 objectid);
320 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) in overwrite_item()
476 u64 objectid) in read_one_inode() argument
481 key.objectid = objectid; in read_one_inode()
546 inode = read_one_inode(root, key->objectid); in replay_one_extent()
607 ins.objectid = btrfs_file_extent_disk_bytenr(eb, item); in replay_one_extent()
612 if (ins.objectid > 0) { in replay_one_extent()
620 ret = btrfs_lookup_extent(root, ins.objectid, in replay_one_extent()
624 ins.objectid, ins.offset, in replay_one_extent()
625 0, root->root_key.objectid, in replay_one_extent()
[all …]
Drelocation.c585 key.objectid = root_objectid; in read_fs_root()
711 key.objectid = cur->bytenr;
765 if (key.objectid != cur->bytenr) {
804 if (key.objectid == key.offset) {
820 if (key.objectid == key.offset) {
1291 struct btrfs_root *root, u64 objectid) argument
1302 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID;
1304 root_key.offset = objectid;
1306 if (root->root_key.objectid == objectid) {
1332 if (root->root_key.objectid == objectid) {
[all …]
Dbackref.c101 if (key.objectid != wanted_objectid || in add_all_parents()
138 root_key.objectid = ref->root_id; in __resolve_indirect_ref()
159 (unsigned long long)ref->key.objectid, ref->key.type, in __resolve_indirect_ref()
183 ret = add_all_parents(root, path, parents, eb, level, key.objectid, in __resolve_indirect_ref()
361 key.objectid = ref->objectid; in __add_delayed_refs()
375 key.objectid = ref->objectid; in __add_delayed_refs()
475 key.objectid = btrfs_extent_data_ref_objectid(leaf, in __add_inline_refs()
521 if (key.objectid != bytenr) in __add_keyed_refs()
557 key.objectid = btrfs_extent_data_ref_objectid(leaf, in __add_keyed_refs()
602 key.objectid = bytenr; in find_parent_nodes()
[all …]
Ddir-item.c70 struct btrfs_path *path, u64 objectid, in btrfs_insert_xattr_item() argument
84 key.objectid = objectid; in btrfs_insert_xattr_item()
135 key.objectid = btrfs_ino(dir); in btrfs_insert_dir_item()
202 key.objectid = dir; in btrfs_lookup_dir_item()
228 u64 objectid, const char *name, int name_len, in btrfs_lookup_dir_index_item() argument
236 key.objectid = dir; in btrfs_lookup_dir_index_item()
238 key.offset = objectid; in btrfs_lookup_dir_index_item()
259 key.objectid = dirid; in btrfs_search_dir_index_item()
283 if (key.objectid != dirid || key.type != BTRFS_DIR_INDEX_KEY) in btrfs_search_dir_index_item()
306 key.objectid = dir; in btrfs_lookup_xattr()
Dinode-item.c66 key.objectid = inode_objectid; in btrfs_lookup_inode_ref()
96 key.objectid = inode_objectid; in btrfs_del_inode_ref()
152 key.objectid = inode_objectid; in btrfs_insert_inode_ref()
199 struct btrfs_path *path, u64 objectid) in btrfs_insert_empty_inode() argument
203 key.objectid = objectid; in btrfs_insert_empty_inode()
229 if (found_key.objectid == location->objectid && in btrfs_lookup_inode()
Dextent-tree.c149 if (block_group->key.objectid < cache->key.objectid) { in btrfs_add_block_group_cache()
151 } else if (block_group->key.objectid > cache->key.objectid) { in btrfs_add_block_group_cache()
185 end = cache->key.objectid + cache->key.offset - 1; in block_group_cache_tree_search()
186 start = cache->key.objectid; in block_group_cache_tree_search()
189 if (!contains && (!ret || start < ret->key.objectid)) in block_group_cache_tree_search()
226 start = cache->key.objectid; in free_excluded_extents()
243 if (cache->key.objectid < BTRFS_SUPER_INFO_OFFSET) { in exclude_super_stripes()
244 stripe_len = BTRFS_SUPER_INFO_OFFSET - cache->key.objectid; in exclude_super_stripes()
246 ret = add_excluded_extent(root, cache->key.objectid, in exclude_super_stripes()
254 cache->key.objectid, bytenr, in exclude_super_stripes()
[all …]
Dinode-map.h6 void btrfs_return_ino(struct btrfs_root *root, u64 objectid);
7 int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid);
11 int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid);
Dfile-item.c41 u64 objectid, u64 pos, in btrfs_insert_file_extent() argument
55 file_key.objectid = objectid; in btrfs_insert_file_extent()
99 file_key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csum()
138 struct btrfs_path *path, u64 objectid, in btrfs_lookup_file_extent() argument
146 file_key.objectid = objectid; in btrfs_lookup_file_extent()
215 if (BTRFS_I(inode)->root->root_key.objectid == in __btrfs_lookup_bio_sums()
306 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_range()
316 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_range()
338 if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_lookup_csums_range()
569 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_del_csums()
[all …]
Dinode.c145 key.objectid = btrfs_ino(inode); in insert_inline_extent()
716 em->block_start = ins.objectid; in submit_compressed_extents()
738 ins.objectid, in submit_compressed_extents()
761 ins.objectid, in submit_compressed_extents()
766 alloc_hint = ins.objectid + ins.offset; in submit_compressed_extents()
918 em->block_start = ins.objectid; in cow_file_range()
936 ret = btrfs_add_ordered_extent(inode, start, ins.objectid, in cow_file_range()
940 if (root->root_key.objectid == in cow_file_range()
969 alloc_hint = ins.objectid + ins.offset; in cow_file_range()
1183 if (found_key.objectid == ino && in run_delalloc_nocow()
[all …]
Dtree-defrag.c70 if (root->defrag_progress.objectid == 0) { in btrfs_defrag_leaves()
77 root->defrag_max.objectid = 0; in btrfs_defrag_leaves()
130 if (root->defrag_max.objectid > root->defrag_progress.objectid) in btrfs_defrag_leaves()
Dioctl.c349 u64 objectid; in create_subvol() local
353 ret = btrfs_find_free_objectid(root->fs_info->tree_root, &objectid); in create_subvol()
370 0, objectid, NULL, 0, 0, 0, 0); in create_subvol()
380 btrfs_set_header_owner(leaf, objectid); in create_subvol()
418 key.objectid = objectid; in create_subvol()
465 objectid, root->root_key.objectid, in create_subvol()
743 min_key.objectid = ino; in find_new_extents()
747 max_key.objectid = ino; in find_new_extents()
758 if (min_key.objectid != ino) in find_new_extents()
1577 key.objectid = root->root_key.objectid; in may_destroy_subvol()
[all …]
Dorphan.c29 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_insert_orphan_item()
50 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_del_orphan_item()
79 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_item()
Dvolumes.c791 key.objectid = device->devid; in btrfs_account_dev_extents_size()
799 ret = btrfs_previous_item(root, path, key.objectid, key.type); in btrfs_account_dev_extents_size()
818 if (key.objectid < device->devid) in btrfs_account_dev_extents_size()
821 if (key.objectid > device->devid) in btrfs_account_dev_extents_size()
912 key.objectid = device->devid; in find_free_dev_extent()
920 ret = btrfs_previous_item(root, path, key.objectid, key.type); in find_free_dev_extent()
939 if (key.objectid < device->devid) in find_free_dev_extent()
942 if (key.objectid > device->devid) in find_free_dev_extent()
1025 key.objectid = device->devid; in btrfs_free_dev_extent()
1031 ret = btrfs_previous_item(root, path, key.objectid, in btrfs_free_dev_extent()
[all …]
Dscrub.c284 root_key.objectid = root; in scrub_print_warning_inode()
380 extent_item_pos = swarn.logical - found_key.objectid; in scrub_print_warning()
404 iterate_extent_inodes(fs_info, found_key.objectid, in scrub_print_warning()
427 key.objectid = root; in scrub_fixup_readpage()
435 key.objectid = inum; in scrub_fixup_readpage()
1826 key_start.objectid = logical; in scrub_stripe()
1829 key_end.objectid = base + offset + nstripes * increment; in scrub_stripe()
1834 key_start.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in scrub_stripe()
1837 key_end.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in scrub_stripe()
1907 key.objectid = logical; in scrub_stripe()
[all …]
Dfile.c148 defrag->root = root->root_key.objectid; in btrfs_add_inode_defrag()
239 key.objectid = defrag->root; in btrfs_run_defrag_inodes()
246 key.objectid = defrag->ino; in btrfs_run_defrag_inodes()
591 if (key.objectid == ino && in btrfs_drop_extents()
612 if (key.objectid > ino || in btrfs_drop_extents()
684 root->root_key.objectid, in btrfs_drop_extents()
685 new_key.objectid, in btrfs_drop_extents()
759 root->root_key.objectid, in btrfs_drop_extents()
760 key.objectid, key.offset - in btrfs_drop_extents()
805 u64 objectid, u64 bytenr, u64 orig_offset, in extent_mergeable() argument
[all …]
Dbtrfs_inode.h179 u64 ino = BTRFS_I(inode)->location.objectid; in btrfs_ino()
200 BTRFS_I(inode)->location.objectid == BTRFS_FREE_INO_OBJECTID) in btrfs_is_free_space_inode()
Ddisk-io.c165 void btrfs_set_buffer_lockdep_class(u64 objectid, struct extent_buffer *eb, in btrfs_set_buffer_lockdep_class() argument
174 if (ks->id == objectid) in btrfs_set_buffer_lockdep_class()
472 (unsigned long long)root->objectid, slot)
1132 u64 objectid) in __setup_root() argument
1146 root->objectid = objectid; in __setup_root()
1182 root->root_key.objectid = objectid; in __setup_root()
1188 u64 objectid, in find_and_setup_root() argument
1197 root, fs_info, objectid); in find_and_setup_root()
1198 ret = btrfs_find_last_root(tree_root, objectid, in find_and_setup_root()
1242 root->root_key.objectid = BTRFS_TREE_LOG_OBJECTID; in alloc_log_tree()
[all …]
Dctree.c358 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID || in update_ref_for_cow()
370 if ((owner == root->root_key.objectid || in update_ref_for_cow()
371 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) && in update_ref_for_cow()
376 if (root->root_key.objectid == in update_ref_for_cow()
386 if (root->root_key.objectid == in update_ref_for_cow()
403 if (root->root_key.objectid == in update_ref_for_cow()
460 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) { in __btrfs_cow_block()
469 root->root_key.objectid, &disk_key, in __btrfs_cow_block()
482 if (root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID) in __btrfs_cow_block()
485 btrfs_set_header_owner(cow, root->root_key.objectid); in __btrfs_cow_block()
[all …]
Dctree.h194 __le64 objectid; member
200 u64 objectid; member
599 __le64 objectid; member
617 __le64 objectid; member
1337 u64 objectid; member
1838 objectid, 64);
1870 BTRFS_SETGET_FUNCS(ref_objectid_v0, struct btrfs_extent_ref_v0, objectid, 64);
2032 objectid, 64);
2041 cpu->objectid = le64_to_cpu(disk->objectid); in btrfs_disk_key_to_cpu()
2049 disk->objectid = cpu_to_le64(cpu->objectid); in btrfs_cpu_key_to_disk()
[all …]
Ddisk-io.h96 void btrfs_set_buffer_lockdep_class(u64 objectid,
101 static inline void btrfs_set_buffer_lockdep_class(u64 objectid, in btrfs_set_buffer_lockdep_class() argument
Dfree-space-cache.c49 key.objectid = BTRFS_FREE_SPACE_OBJECTID; in __lookup_free_space_inode()
98 block_group->key.objectid); in lookup_free_space_inode()
158 key.objectid = BTRFS_FREE_SPACE_OBJECTID; in __create_free_space_inode()
192 block_group->key.objectid); in create_free_space_inode()
609 key.objectid = BTRFS_FREE_SPACE_OBJECTID; in __load_free_space_cache()
783 path, block_group->key.objectid); in load_free_space_cache()
796 "space\n", block_group->key.objectid); in load_free_space_cache()
808 "for block group %llu\n", block_group->key.objectid); in load_free_space_cache()
921 start = block_group->key.objectid; in __btrfs_write_out_cache()
923 while (block_group && (start < block_group->key.objectid + in __btrfs_write_out_cache()
[all …]
Ddelayed-inode.c72 item1->key.objectid == item2->key.objectid && in btrfs_is_continuous_delayed_item()
573 if (root->objectid == root_id) in btrfs_get_fs_root()
576 root_key.objectid = root_id; in btrfs_get_fs_root()
601 item->key.objectid, in btrfs_delayed_item_reserve_metadata()
619 item->key.objectid, item->bytes_reserved, in btrfs_delayed_item_release_metadata()
1081 key.objectid = node->inode_id; in btrfs_update_delayed_inode()
1406 delayed_item->key.objectid = btrfs_ino(dir); in btrfs_insert_delayed_dir_index()
1433 (unsigned long long)delayed_node->root->objectid, in btrfs_insert_delayed_dir_index()
1477 item_key.objectid = btrfs_ino(dir); in btrfs_delete_delayed_dir_index()
1507 (unsigned long long)node->root->objectid, in btrfs_delete_delayed_dir_index()
[all …]

12