Lines Matching refs:path

35 	struct btrfs_path *path;  in caching_kthread()  local
44 path = btrfs_alloc_path(); in caching_kthread()
45 if (!path) in caching_kthread()
49 path->skip_locking = 1; in caching_kthread()
50 path->search_commit_root = 1; in caching_kthread()
51 path->reada = 2; in caching_kthread()
60 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in caching_kthread()
68 leaf = path->nodes[0]; in caching_kthread()
69 slot = path->slots[0]; in caching_kthread()
71 ret = btrfs_next_leaf(root, path); in caching_kthread()
79 leaf = path->nodes[0]; in caching_kthread()
89 btrfs_release_path(path); in caching_kthread()
114 path->slots[0]++; in caching_kthread()
132 btrfs_free_path(path); in caching_kthread()
396 struct btrfs_path *path; in btrfs_save_ino_cache() local
418 path = btrfs_alloc_path(); in btrfs_save_ino_cache()
419 if (!path) in btrfs_save_ino_cache()
442 inode = lookup_free_ino_inode(root, path); in btrfs_save_ino_cache()
452 ret = create_free_ino_inode(root, trans, path); in btrfs_save_ino_cache()
503 ret = btrfs_write_out_ino_cache(root, trans, path, inode); in btrfs_save_ino_cache()
514 btrfs_free_path(path); in btrfs_save_ino_cache()
520 struct btrfs_path *path; in btrfs_find_highest_objectid() local
527 path = btrfs_alloc_path(); in btrfs_find_highest_objectid()
528 if (!path) in btrfs_find_highest_objectid()
534 ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); in btrfs_find_highest_objectid()
538 if (path->slots[0] > 0) { in btrfs_find_highest_objectid()
539 slot = path->slots[0] - 1; in btrfs_find_highest_objectid()
540 l = path->nodes[0]; in btrfs_find_highest_objectid()
549 btrfs_free_path(path); in btrfs_find_highest_objectid()