Lines Matching refs:objectid

39 	key.objectid = BTRFS_FIRST_FREE_OBJECTID;  in caching_kthread()
89 if (key.objectid >= root->highest_objectid) in caching_kthread()
92 if (last != (u64)-1 && last + 1 != key.objectid) { in caching_kthread()
94 key.objectid - last - 1); in caching_kthread()
98 last = key.objectid; in caching_kthread()
129 u64 objectid; in start_caching() local
158 ret = btrfs_find_free_objectid(root, &objectid); in start_caching()
159 if (!ret && objectid <= BTRFS_LAST_FREE_OBJECTID) { in start_caching()
160 __btrfs_add_free_space(fs_info, ctl, objectid, in start_caching()
161 BTRFS_LAST_FREE_OBJECTID - objectid + 1); in start_caching()
165 root->root_key.objectid); in start_caching()
173 int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid) in btrfs_find_free_ino() argument
176 return btrfs_find_free_objectid(root, objectid); in btrfs_find_free_ino()
179 *objectid = btrfs_find_ino_for_alloc(root); in btrfs_find_free_ino()
181 if (*objectid != 0) in btrfs_find_free_ino()
197 void btrfs_return_ino(struct btrfs_root *root, u64 objectid) in btrfs_return_ino() argument
206 __btrfs_add_free_space(fs_info, pinned, objectid, 1); in btrfs_return_ino()
219 __btrfs_add_free_space(fs_info, pinned, objectid, 1); in btrfs_return_ino()
394 if (root->root_key.objectid != BTRFS_FS_TREE_OBJECTID && in btrfs_save_ino_cache()
395 (root->root_key.objectid < BTRFS_FIRST_FREE_OBJECTID || in btrfs_save_ino_cache()
396 root->root_key.objectid > BTRFS_LAST_FREE_OBJECTID)) in btrfs_save_ino_cache()
508 int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_find_highest_objectid() argument
521 search_key.objectid = BTRFS_LAST_FREE_OBJECTID; in btrfs_find_highest_objectid()
532 *objectid = max_t(u64, found_key.objectid, in btrfs_find_highest_objectid()
535 *objectid = BTRFS_FIRST_FREE_OBJECTID - 1; in btrfs_find_highest_objectid()
543 int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_find_free_objectid() argument
551 root->root_key.objectid); in btrfs_find_free_objectid()
556 *objectid = ++root->highest_objectid; in btrfs_find_free_objectid()