Lines Matching refs:key
103 struct btrfs_key key; in btrfs_lookup_inode_ref() local
106 key.objectid = inode_objectid; in btrfs_lookup_inode_ref()
107 key.type = BTRFS_INODE_REF_KEY; in btrfs_lookup_inode_ref()
108 key.offset = ref_objectid; in btrfs_lookup_inode_ref()
110 ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); in btrfs_lookup_inode_ref()
130 struct btrfs_key key; in btrfs_lookup_inode_extref() local
133 key.objectid = inode_objectid; in btrfs_lookup_inode_extref()
134 key.type = BTRFS_INODE_EXTREF_KEY; in btrfs_lookup_inode_extref()
135 key.offset = btrfs_extref_hash(ref_objectid, name, name_len); in btrfs_lookup_inode_extref()
137 ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); in btrfs_lookup_inode_extref()
193 struct btrfs_key key; in btrfs_del_inode_extref() local
202 key.objectid = inode_objectid; in btrfs_del_inode_extref()
203 btrfs_set_key_type(&key, BTRFS_INODE_EXTREF_KEY); in btrfs_del_inode_extref()
204 key.offset = btrfs_extref_hash(ref_objectid, name, name_len); in btrfs_del_inode_extref()
212 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_inode_extref()
264 struct btrfs_key key; in btrfs_del_inode_ref() local
275 key.objectid = inode_objectid; in btrfs_del_inode_ref()
276 key.offset = ref_objectid; in btrfs_del_inode_ref()
277 btrfs_set_key_type(&key, BTRFS_INODE_REF_KEY); in btrfs_del_inode_ref()
285 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_inode_ref()
345 struct btrfs_key key; in btrfs_insert_inode_extref() local
349 key.objectid = inode_objectid; in btrfs_insert_inode_extref()
350 key.type = BTRFS_INODE_EXTREF_KEY; in btrfs_insert_inode_extref()
351 key.offset = btrfs_extref_hash(ref_objectid, name, name_len); in btrfs_insert_inode_extref()
358 ret = btrfs_insert_empty_item(trans, root, path, &key, in btrfs_insert_inode_extref()
397 struct btrfs_key key; in btrfs_insert_inode_ref() local
403 key.objectid = inode_objectid; in btrfs_insert_inode_ref()
404 key.offset = ref_objectid; in btrfs_insert_inode_ref()
405 btrfs_set_key_type(&key, BTRFS_INODE_REF_KEY); in btrfs_insert_inode_ref()
412 ret = btrfs_insert_empty_item(trans, root, path, &key, in btrfs_insert_inode_ref()
465 struct btrfs_key key; in btrfs_insert_empty_inode() local
467 key.objectid = objectid; in btrfs_insert_empty_inode()
468 btrfs_set_key_type(&key, BTRFS_INODE_ITEM_KEY); in btrfs_insert_empty_inode()
469 key.offset = 0; in btrfs_insert_empty_inode()
471 ret = btrfs_insert_empty_item(trans, root, path, &key, in btrfs_insert_empty_inode()