Lines Matching defs:path
59 * requested by subvol=/path. That way the callchain is straightforward and we
259 * in the call path but will return -EIO.
1144 struct btrfs_path *path = NULL;
1150 path = btrfs_alloc_path();
1151 if (!path) {
1155 path->leave_spinning = 1;
1174 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
1178 ret = btrfs_previous_item(root, path, subvol_objectid,
1188 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]);
1191 root_ref = btrfs_item_ptr(path->nodes[0], path->slots[0],
1193 len = btrfs_root_ref_name_len(path->nodes[0], root_ref);
1199 read_extent_buffer(path->nodes[0], ptr + 1,
1202 dirid = btrfs_root_ref_dirid(path->nodes[0], root_ref);
1203 btrfs_release_path(path);
1221 ret = btrfs_search_slot(NULL, fs_root, &key, path, 0, 0);
1225 ret = btrfs_previous_item(fs_root, path, dirid,
1235 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]);
1238 inode_ref = btrfs_item_ptr(path->nodes[0],
1239 path->slots[0],
1241 len = btrfs_inode_ref_name_len(path->nodes[0],
1248 read_extent_buffer(path->nodes[0], ptr + 1,
1251 btrfs_release_path(path);
1257 btrfs_free_path(path);
1268 btrfs_free_path(path);
1277 struct btrfs_path *path;
1281 path = btrfs_alloc_path();
1282 if (!path)
1284 path->leave_spinning = 1;
1292 di = btrfs_lookup_dir_item(NULL, root, path, dir_id, "default", 7, 0);
1294 btrfs_free_path(path);
1303 btrfs_free_path(path);
1308 btrfs_dir_item_key_to_cpu(path->nodes[0], di, &location);
1309 btrfs_free_path(path);