Home
last modified time | relevance | path

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

12

/fs/btrfs/
Dexport.c34 fid->objectid = btrfs_ino(inode); in btrfs_encode_fh()
35 fid->root_objectid = BTRFS_I(inode)->root->objectid; in btrfs_encode_fh()
41 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh()
43 parent_root_id = BTRFS_I(parent)->root->objectid; in btrfs_encode_fh()
59 static struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid, in btrfs_get_dentry() argument
70 if (objectid < BTRFS_FIRST_FREE_OBJECTID) in btrfs_get_dentry()
73 key.objectid = root_objectid; in btrfs_get_dentry()
90 key.objectid = objectid; in btrfs_get_dentry()
117 u64 objectid, root_objectid; in btrfs_fh_to_parent() local
131 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.c71 int btrfs_find_last_root(struct btrfs_root *root, u64 objectid, in btrfs_find_last_root() argument
81 search_key.objectid = objectid; in btrfs_find_last_root()
100 if (found_key.objectid != objectid || in btrfs_find_last_root()
151 (unsigned long long)key->objectid, key->type, in btrfs_update_root()
221 int btrfs_find_dead_roots(struct btrfs_root *root, u64 objectid) in btrfs_find_dead_roots() argument
233 key.objectid = objectid; in btrfs_find_dead_roots()
260 if (key.objectid < objectid) in btrfs_find_dead_roots()
263 if (key.objectid > objectid) in btrfs_find_dead_roots()
309 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_roots()
336 if (key.objectid != BTRFS_ORPHAN_OBJECTID || in btrfs_find_orphan_roots()
[all …]
Dtree-log.c102 struct btrfs_path *path, u64 objectid);
324 if (root->root_key.objectid != BTRFS_TREE_LOG_OBJECTID) in overwrite_item()
480 u64 objectid) in read_one_inode() argument
485 key.objectid = objectid; in read_one_inode()
548 inode = read_one_inode(root, key->objectid); in replay_one_extent()
610 ins.objectid = btrfs_file_extent_disk_bytenr(eb, item); in replay_one_extent()
615 if (ins.objectid > 0) { in replay_one_extent()
623 ret = btrfs_lookup_extent(root, ins.objectid, in replay_one_extent()
627 ins.objectid, ins.offset, in replay_one_extent()
628 0, root->root_key.objectid, in replay_one_extent()
[all …]
Drelocation.c584 key.objectid = root_objectid; in read_fs_root()
717 key.objectid = cur->bytenr;
771 if (key.objectid != cur->bytenr) {
811 if (key.objectid == key.offset) {
827 if (key.objectid == key.offset) {
1302 struct btrfs_root *root, u64 objectid) argument
1313 root_key.objectid = BTRFS_TREE_RELOC_OBJECTID;
1315 root_key.offset = objectid;
1317 if (root->root_key.objectid == objectid) {
1343 if (root->root_key.objectid == objectid) {
[all …]
Ddir-item.c74 struct btrfs_path *path, u64 objectid, in btrfs_insert_xattr_item() argument
88 key.objectid = objectid; in btrfs_insert_xattr_item()
139 key.objectid = btrfs_ino(dir); in btrfs_insert_dir_item()
206 key.objectid = dir; in btrfs_lookup_dir_item()
236 key.objectid = dir; in btrfs_check_dir_item_collision()
291 u64 objectid, const char *name, int name_len, in btrfs_lookup_dir_index_item() argument
299 key.objectid = dir; in btrfs_lookup_dir_index_item()
301 key.offset = objectid; in btrfs_lookup_dir_index_item()
322 key.objectid = dirid; in btrfs_search_dir_index_item()
346 if (key.objectid != dirid || key.type != BTRFS_DIR_INDEX_KEY) in btrfs_search_dir_index_item()
[all …]
Dbackref.c55 e->inum = key->objectid; in check_extent_in_eb()
217 if (key.objectid != key_for_search->objectid || in add_all_parents()
277 root_key.objectid = ref->root_id; in __resolve_indirect_ref()
296 (unsigned long long)ref->key_for_search.objectid, in __resolve_indirect_ref()
396 if (ref1->key_for_search.objectid != ref2->key_for_search.objectid) in ref_for_same_block()
565 key.objectid = ref->objectid; in __add_delayed_refs()
578 key.objectid = ref->objectid; in __add_delayed_refs()
676 key.objectid = btrfs_extent_data_ref_objectid(leaf, in __add_inline_refs()
722 if (key.objectid != bytenr) in __add_keyed_refs()
759 key.objectid = btrfs_extent_data_ref_objectid(leaf, in __add_keyed_refs()
[all …]
Dextent-tree.c156 if (block_group->key.objectid < cache->key.objectid) { in btrfs_add_block_group_cache()
158 } else if (block_group->key.objectid > cache->key.objectid) { in btrfs_add_block_group_cache()
170 if (info->first_logical_byte > block_group->key.objectid) in btrfs_add_block_group_cache()
171 info->first_logical_byte = block_group->key.objectid; in btrfs_add_block_group_cache()
196 end = cache->key.objectid + cache->key.offset - 1; in block_group_cache_tree_search()
197 start = cache->key.objectid; in block_group_cache_tree_search()
200 if (!contains && (!ret || start < ret->key.objectid)) in block_group_cache_tree_search()
216 if (bytenr == 0 && info->first_logical_byte > ret->key.objectid) in block_group_cache_tree_search()
217 info->first_logical_byte = ret->key.objectid; in block_group_cache_tree_search()
240 start = cache->key.objectid; in free_excluded_extents()
[all …]
Dqgroup.c274 key.objectid = 0; in btrfs_read_qgroup_config()
309 fs_info->qgroup_rescan_progress.objectid = in btrfs_read_qgroup_config()
381 key.objectid = 0; in btrfs_read_qgroup_config()
395 if (found_key.objectid > found_key.offset) { in btrfs_read_qgroup_config()
401 ret = add_relation_rb(fs_info, found_key.objectid, in btrfs_read_qgroup_config()
406 (unsigned long long)found_key.objectid, in btrfs_read_qgroup_config()
477 key.objectid = src; in add_qgroup_relation_item()
501 key.objectid = src; in del_qgroup_relation_item()
534 key.objectid = 0; in add_qgroup_item()
590 key.objectid = 0; in del_qgroup_item()
[all …]
Dinode-item.c106 key.objectid = inode_objectid; in btrfs_lookup_inode_ref()
133 key.objectid = inode_objectid; in btrfs_lookup_inode_extref()
202 key.objectid = inode_objectid; in btrfs_del_inode_extref()
275 key.objectid = inode_objectid; in btrfs_del_inode_ref()
349 key.objectid = inode_objectid; in btrfs_insert_inode_extref()
403 key.objectid = inode_objectid; in btrfs_insert_inode_ref()
463 struct btrfs_path *path, u64 objectid) in btrfs_insert_empty_inode() argument
467 key.objectid = objectid; in btrfs_insert_empty_inode()
493 if (found_key.objectid == location->objectid && in btrfs_lookup_inode()
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.c42 u64 objectid, u64 pos, in btrfs_insert_file_extent() argument
56 file_key.objectid = objectid; in btrfs_insert_file_extent()
101 file_key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csum()
141 struct btrfs_path *path, u64 objectid, in btrfs_lookup_file_extent() argument
149 file_key.objectid = objectid; in btrfs_lookup_file_extent()
218 if (BTRFS_I(inode)->root->root_key.objectid == in __btrfs_lookup_bio_sums()
319 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_lookup_csums_range()
329 if (key.objectid == BTRFS_EXTENT_CSUM_OBJECTID && in btrfs_lookup_csums_range()
351 if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID || in btrfs_lookup_csums_range()
577 key.objectid = BTRFS_EXTENT_CSUM_OBJECTID; in btrfs_del_csums()
[all …]
Dsend.c713 key.objectid = ino; in get_inode_info()
1006 key.objectid = ino; in get_inode_path()
1018 if (found_key.objectid != ino || in get_inode_path()
1061 if (root < cr->root->objectid) in __clone_root_cmp_bsearch()
1063 if (root > cr->root->objectid) in __clone_root_cmp_bsearch()
1073 if (cr1->root->objectid < cr2->root->objectid) in __clone_root_cmp_sort()
1075 if (cr1->root->objectid > cr2->root->objectid) in __clone_root_cmp_sort()
1262 extent_item_pos = logical - found_key.objectid; in find_extent_clone()
1266 extent_item_pos = logical - found_key.objectid; in find_extent_clone()
1268 found_key.objectid, extent_item_pos, 1, in find_extent_clone()
[all …]
Dtree-defrag.c68 if (root->defrag_progress.objectid == 0) { in btrfs_defrag_leaves()
75 root->defrag_max.objectid = 0; in btrfs_defrag_leaves()
125 if (root->defrag_max.objectid > root->defrag_progress.objectid) in btrfs_defrag_leaves()
Dinode.c154 key.objectid = btrfs_ino(inode); in insert_inline_extent()
728 em->block_start = ins.objectid; in submit_compressed_extents()
756 ins.objectid, in submit_compressed_extents()
780 ins.objectid, in submit_compressed_extents()
783 alloc_hint = ins.objectid + ins.offset; in submit_compressed_extents()
793 btrfs_free_reserved_extent(root, ins.objectid, ins.offset); in submit_compressed_extents()
939 em->block_start = ins.objectid; in __cow_file_range()
962 ret = btrfs_add_ordered_extent(inode, start, ins.objectid, in __cow_file_range()
967 if (root->root_key.objectid == in __cow_file_range()
996 alloc_hint = ins.objectid + ins.offset; in __cow_file_range()
[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()
Dioctl.c383 u64 objectid; in create_subvol() local
389 ret = btrfs_find_free_objectid(root->fs_info->tree_root, &objectid); in create_subvol()
411 ret = btrfs_qgroup_inherit(trans, root->fs_info, 0, objectid, inherit); in create_subvol()
416 0, objectid, NULL, 0, 0, 0); in create_subvol()
426 btrfs_set_header_owner(leaf, objectid); in create_subvol()
472 key.objectid = objectid; in create_subvol()
519 objectid, root->root_key.objectid, in create_subvol()
833 min_key.objectid = ino; in find_new_extents()
837 max_key.objectid = ino; in find_new_extents()
848 if (min_key.objectid != ino) in find_new_extents()
[all …]
Ddisk-io.c176 void btrfs_set_buffer_lockdep_class(u64 objectid, struct extent_buffer *eb, in btrfs_set_buffer_lockdep_class() argument
185 if (ks->id == objectid) in btrfs_set_buffer_lockdep_class()
516 (unsigned long long)root->objectid, slot)
1178 u64 objectid) in __setup_root() argument
1192 root->objectid = objectid; in __setup_root()
1232 root->root_key.objectid = objectid; in __setup_root()
1240 u64 objectid, in find_and_setup_root() argument
1249 root, fs_info, objectid); in find_and_setup_root()
1250 ret = btrfs_find_last_root(tree_root, objectid, in find_and_setup_root()
1281 u64 objectid) in btrfs_create_tree() argument
[all …]
Ddisk-io.h99 u64 objectid);
107 void btrfs_set_buffer_lockdep_class(u64 objectid,
112 static inline void btrfs_set_buffer_lockdep_class(u64 objectid, in btrfs_set_buffer_lockdep_class() argument
Dvolumes.c924 key.objectid = device->devid; in btrfs_account_dev_extents_size()
932 ret = btrfs_previous_item(root, path, key.objectid, key.type); in btrfs_account_dev_extents_size()
951 if (key.objectid < device->devid) in btrfs_account_dev_extents_size()
954 if (key.objectid > device->devid) in btrfs_account_dev_extents_size()
1045 key.objectid = device->devid; in find_free_dev_extent()
1053 ret = btrfs_previous_item(root, path, key.objectid, key.type); in find_free_dev_extent()
1072 if (key.objectid < device->devid) in find_free_dev_extent()
1075 if (key.objectid > device->devid) in find_free_dev_extent()
1158 key.objectid = device->devid; in btrfs_free_dev_extent()
1164 ret = btrfs_previous_item(root, path, key.objectid, in btrfs_free_dev_extent()
[all …]
Dbtrfs_inode.h184 u64 ino = BTRFS_I(inode)->location.objectid; in btrfs_ino()
208 if (BTRFS_I(inode)->location.objectid == BTRFS_FREE_INO_OBJECTID) in btrfs_is_free_space_inode()
Dfile.c172 defrag->root = root->root_key.objectid; in btrfs_add_inode_defrag()
301 key.objectid = defrag->root; in __btrfs_run_defrag_inode()
317 key.objectid = defrag->ino; in __btrfs_run_defrag_inode()
718 if (key.objectid == ino && in __btrfs_drop_extents()
739 if (key.objectid > ino || in __btrfs_drop_extents()
812 root->root_key.objectid, in __btrfs_drop_extents()
813 new_key.objectid, in __btrfs_drop_extents()
883 root->root_key.objectid, in __btrfs_drop_extents()
884 key.objectid, key.offset - in __btrfs_drop_extents()
945 u64 objectid, u64 bytenr, u64 orig_offset, in extent_mergeable() argument
[all …]
Dtransaction.c218 (unsigned long)root->root_key.objectid, in record_root_in_trans()
338 is_fstree(root->root_key.objectid)) { in start_transaction()
969 (unsigned long)root->root_key.objectid, in commit_fs_roots()
1071 u64 objectid; in create_pending_snapshot() local
1087 pending->error = btrfs_find_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1103 root->root_key.objectid, in create_pending_snapshot()
1104 objectid, pending->inherit); in create_pending_snapshot()
1108 key.objectid = objectid; in create_pending_snapshot()
1195 ret = btrfs_copy_root(trans, root, old, &tmp, objectid); in create_pending_snapshot()
1222 ret = btrfs_add_root_ref(trans, tree_root, objectid, in create_pending_snapshot()
[all …]
Ddelayed-inode.c74 item1->key.objectid == item2->key.objectid && in btrfs_is_continuous_delayed_item()
543 if (root->objectid == root_id) in btrfs_get_fs_root()
546 root_key.objectid = root_id; in btrfs_get_fs_root()
571 item->key.objectid, in btrfs_delayed_item_reserve_metadata()
589 item->key.objectid, item->bytes_reserved, in btrfs_delayed_item_release_metadata()
1041 key.objectid = node->inode_id; in __btrfs_update_delayed_inode()
1464 delayed_item->key.objectid = btrfs_ino(dir); in btrfs_insert_delayed_dir_index()
1491 (unsigned long long)delayed_node->root->objectid, in btrfs_insert_delayed_dir_index()
1535 item_key.objectid = btrfs_ino(dir); in btrfs_delete_delayed_dir_index()
1565 (unsigned long long)node->root->objectid, in btrfs_delete_delayed_dir_index()
[all …]
Dctree.h214 __le64 objectid; member
220 u64 objectid; member
630 __le64 objectid; member
648 __le64 objectid; member
1675 u64 objectid; member
2273 objectid, 64);
2305 BTRFS_SETGET_FUNCS(ref_objectid_v0, struct btrfs_extent_ref_v0, objectid, 64);
2467 objectid, 64);
2476 cpu->objectid = le64_to_cpu(disk->objectid); in btrfs_disk_key_to_cpu()
2484 disk->objectid = cpu_to_le64(cpu->objectid); in btrfs_cpu_key_to_disk()
[all …]

12