Lines Matching refs:path
41 struct btrfs_path *path,
51 leaf = path->nodes[0];
52 dir_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dir_item);
53 total_len = btrfs_item_size_nr(leaf, path->slots[0]);
81 struct btrfs_path *path, u64 dir,
97 ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow);
101 if (path->slots[0] == 0)
103 path->slots[0]--;
106 leaf = path->nodes[0];
107 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);
114 return btrfs_match_dir_item_name(root, path, name, name_len);
120 struct btrfs_path path;
124 btrfs_init_path(&path);
129 ret = btrfs_search_slot(NULL, root, &key, &path, 0, 0);
137 if (path.slots[0] >= btrfs_header_nritems(path.nodes[0])) {
138 ret = btrfs_next_leaf(root, &path);
149 btrfs_item_key_to_cpu(path.nodes[0], &key, path.slots[0]);
152 di = btrfs_item_ptr(path.nodes[0], path.slots[0],
154 if (verify_dir_item(root, path.nodes[0], di)) {
158 ret = callback(root, path.nodes[0], di);
161 } while (!(ret = btrfs_next_item(root, &path)));
166 btrfs_release_path(&path);