Lines Matching refs:path
22 struct btrfs_path *path = NULL; in btrfs_defrag_leaves() local
41 path = btrfs_alloc_path(); in btrfs_defrag_leaves()
42 if (!path) { in btrfs_defrag_leaves()
69 path->keep_locks = 1; in btrfs_defrag_leaves()
71 ret = btrfs_search_forward(root, &key, path, BTRFS_OLDEST_GENERATION); in btrfs_defrag_leaves()
78 btrfs_release_path(path); in btrfs_defrag_leaves()
84 path->lowest_level = 1; in btrfs_defrag_leaves()
85 wret = btrfs_search_slot(trans, root, &key, path, 0, 1); in btrfs_defrag_leaves()
91 if (!path->nodes[1]) { in btrfs_defrag_leaves()
100 BUG_ON(path->locks[1] == 0); in btrfs_defrag_leaves()
102 path->nodes[1], 0, in btrfs_defrag_leaves()
118 path->slots[1] = btrfs_header_nritems(path->nodes[1]); in btrfs_defrag_leaves()
119 next_key_ret = btrfs_find_next_key(root, path, &key, 1, in btrfs_defrag_leaves()
126 btrfs_free_path(path); in btrfs_defrag_leaves()