• Home
  • Raw
  • Download

Lines Matching refs:key

119 		      *root, struct btrfs_key *key, struct btrfs_root_item  in btrfs_update_root()  argument
134 ret = btrfs_search_slot(trans, root, key, path, 0, 1); in btrfs_update_root()
141 key->objectid, key->type, key->offset, in btrfs_update_root()
160 ret = btrfs_search_slot(trans, root, key, path, in btrfs_update_root()
174 key, sizeof(*item)); in btrfs_update_root()
198 const struct btrfs_key *key, struct btrfs_root_item *item) in btrfs_insert_root() argument
204 return btrfs_insert_item(trans, root, key, item, sizeof(*item)); in btrfs_insert_root()
212 struct btrfs_key key; in btrfs_find_orphan_roots() local
221 key.objectid = BTRFS_ORPHAN_OBJECTID; in btrfs_find_orphan_roots()
222 key.type = BTRFS_ORPHAN_ITEM_KEY; in btrfs_find_orphan_roots()
223 key.offset = 0; in btrfs_find_orphan_roots()
228 ret = btrfs_search_slot(NULL, tree_root, &key, path, 0, 0); in btrfs_find_orphan_roots()
244 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_find_orphan_roots()
247 if (key.objectid != BTRFS_ORPHAN_OBJECTID || in btrfs_find_orphan_roots()
248 key.type != BTRFS_ORPHAN_ITEM_KEY) in btrfs_find_orphan_roots()
251 root_objectid = key.offset; in btrfs_find_orphan_roots()
252 key.offset++; in btrfs_find_orphan_roots()
295 const struct btrfs_key *key) in btrfs_del_root() argument
304 ret = btrfs_search_slot(trans, root, key, path, -1, 1); in btrfs_del_root()
325 struct btrfs_key key; in btrfs_del_root_ref() local
334 key.objectid = root_id; in btrfs_del_root_ref()
335 key.type = BTRFS_ROOT_BACKREF_KEY; in btrfs_del_root_ref()
336 key.offset = ref_id; in btrfs_del_root_ref()
338 ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); in btrfs_del_root_ref()
363 if (key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_del_root_ref()
365 key.objectid = ref_id; in btrfs_del_root_ref()
366 key.type = BTRFS_ROOT_REF_KEY; in btrfs_del_root_ref()
367 key.offset = root_id; in btrfs_del_root_ref()
396 struct btrfs_key key; in btrfs_add_root_ref() local
407 key.objectid = root_id; in btrfs_add_root_ref()
408 key.type = BTRFS_ROOT_BACKREF_KEY; in btrfs_add_root_ref()
409 key.offset = ref_id; in btrfs_add_root_ref()
411 ret = btrfs_insert_empty_item(trans, tree_root, path, &key, in btrfs_add_root_ref()
428 if (key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_add_root_ref()
430 key.objectid = ref_id; in btrfs_add_root_ref()
431 key.type = BTRFS_ROOT_REF_KEY; in btrfs_add_root_ref()
432 key.offset = root_id; in btrfs_add_root_ref()