Lines Matching refs:path
34 struct btrfs_path *path = NULL; in btrfs_defrag_leaves() local
62 path = btrfs_alloc_path(); in btrfs_defrag_leaves()
63 if (!path) in btrfs_defrag_leaves()
90 path->keep_locks = 1; in btrfs_defrag_leaves()
94 ret = btrfs_search_forward(root, &key, NULL, path, in btrfs_defrag_leaves()
102 btrfs_release_path(root, path); in btrfs_defrag_leaves()
103 wret = btrfs_search_slot(trans, root, &key, path, 0, 1); in btrfs_defrag_leaves()
109 if (!path->nodes[1]) { in btrfs_defrag_leaves()
113 path->slots[1] = btrfs_header_nritems(path->nodes[1]); in btrfs_defrag_leaves()
114 next_key_ret = btrfs_find_next_key(root, path, &key, 1, cache_only, in btrfs_defrag_leaves()
117 path->nodes[1], 0, in btrfs_defrag_leaves()
126 btrfs_release_path(root, path); in btrfs_defrag_leaves()
130 if (path) in btrfs_defrag_leaves()
131 btrfs_free_path(path); in btrfs_defrag_leaves()