Lines Matching refs:objectid
53 key.objectid = BTRFS_FIRST_FREE_OBJECTID; in caching_kthread()
103 if (key.objectid >= root->highest_objectid) in caching_kthread()
106 if (last != (u64)-1 && last + 1 != key.objectid) { in caching_kthread()
108 key.objectid - last - 1); in caching_kthread()
112 last = key.objectid; in caching_kthread()
142 u64 objectid; in start_caching() local
171 ret = btrfs_find_free_objectid(root, &objectid); in start_caching()
172 if (!ret && objectid <= BTRFS_LAST_FREE_OBJECTID) { in start_caching()
173 __btrfs_add_free_space(ctl, objectid, in start_caching()
174 BTRFS_LAST_FREE_OBJECTID - objectid + 1); in start_caching()
178 root->root_key.objectid); in start_caching()
186 int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid) in btrfs_find_free_ino() argument
189 return btrfs_find_free_objectid(root, objectid); in btrfs_find_free_ino()
192 *objectid = btrfs_find_ino_for_alloc(root); in btrfs_find_free_ino()
194 if (*objectid != 0) in btrfs_find_free_ino()
210 void btrfs_return_ino(struct btrfs_root *root, u64 objectid) in btrfs_return_ino() argument
218 __btrfs_add_free_space(pinned, objectid, 1); in btrfs_return_ino()
231 __btrfs_add_free_space(pinned, objectid, 1); in btrfs_return_ino()
406 if (root->root_key.objectid != BTRFS_FS_TREE_OBJECTID && in btrfs_save_ino_cache()
407 (root->root_key.objectid < BTRFS_FIRST_FREE_OBJECTID || in btrfs_save_ino_cache()
408 root->root_key.objectid > BTRFS_LAST_FREE_OBJECTID)) in btrfs_save_ino_cache()
518 int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_find_highest_objectid() argument
531 search_key.objectid = BTRFS_LAST_FREE_OBJECTID; in btrfs_find_highest_objectid()
542 *objectid = max_t(u64, found_key.objectid, in btrfs_find_highest_objectid()
545 *objectid = BTRFS_FIRST_FREE_OBJECTID - 1; in btrfs_find_highest_objectid()
553 int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_find_free_objectid() argument
563 *objectid = ++root->highest_objectid; in btrfs_find_free_objectid()