Lines Matching refs:objectid
55 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()
145 u64 objectid; in start_caching() local
175 ret = btrfs_find_free_objectid(root, &objectid); in start_caching()
176 if (!ret && objectid <= BTRFS_LAST_FREE_OBJECTID) { in start_caching()
177 __btrfs_add_free_space(fs_info, ctl, objectid, in start_caching()
178 BTRFS_LAST_FREE_OBJECTID - objectid + 1); in start_caching()
183 root->root_key.objectid); in start_caching()
188 int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid) in btrfs_find_free_ino() argument
191 return btrfs_find_free_objectid(root, objectid); in btrfs_find_free_ino()
194 *objectid = btrfs_find_ino_for_alloc(root); in btrfs_find_free_ino()
196 if (*objectid != 0) in btrfs_find_free_ino()
210 return btrfs_find_free_objectid(root, objectid); in btrfs_find_free_ino()
215 void btrfs_return_ino(struct btrfs_root *root, u64 objectid) in btrfs_return_ino() argument
224 __btrfs_add_free_space(fs_info, pinned, objectid, 1); in btrfs_return_ino()
237 __btrfs_add_free_space(fs_info, pinned, objectid, 1); in btrfs_return_ino()
412 if (root->root_key.objectid != BTRFS_FS_TREE_OBJECTID && in btrfs_save_ino_cache()
413 (root->root_key.objectid < BTRFS_FIRST_FREE_OBJECTID || in btrfs_save_ino_cache()
414 root->root_key.objectid > BTRFS_LAST_FREE_OBJECTID)) in btrfs_save_ino_cache()
527 int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_find_highest_objectid() argument
540 search_key.objectid = BTRFS_LAST_FREE_OBJECTID; in btrfs_find_highest_objectid()
551 *objectid = max_t(u64, found_key.objectid, in btrfs_find_highest_objectid()
554 *objectid = BTRFS_FIRST_FREE_OBJECTID - 1; in btrfs_find_highest_objectid()
562 int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_find_free_objectid() argument
570 root->root_key.objectid); in btrfs_find_free_objectid()
575 *objectid = ++root->highest_objectid; in btrfs_find_free_objectid()