Lines Matching defs:path

24 						   struct btrfs_path *path,
35 ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size);
38 di = btrfs_match_dir_item_name(fs_info, path, name, name_len);
41 btrfs_extend_item(trans, path, data_size);
45 leaf = path->nodes[0];
46 ptr = btrfs_item_ptr(leaf, path->slots[0], char);
47 ASSERT(data_size <= btrfs_item_size(leaf, path->slots[0]));
48 ptr += btrfs_item_size(leaf, path->slots[0]) - data_size;
58 struct btrfs_path *path, u64 objectid,
78 dir_item = insert_with_overflow(trans, root, path, &key, data_size,
84 leaf = path->nodes[0];
96 btrfs_mark_buffer_dirty(trans, path->nodes[0]);
116 struct btrfs_path *path;
128 path = btrfs_alloc_path();
129 if (!path)
135 dir_item = insert_with_overflow(trans, root, path, &key, data_size,
147 leaf = path->nodes[0];
164 btrfs_release_path(path);
169 btrfs_free_path(path);
179 struct btrfs_root *root, struct btrfs_path *path,
187 ret = btrfs_search_slot(trans, root, key, path, ins_len, cow);
193 return btrfs_match_dir_item_name(root->fs_info, path, name, name_len);
201 * @path: Path to use for the search.
214 struct btrfs_path *path, u64 dir,
225 di = btrfs_lookup_match_dir(trans, root, path, &key, name->name,
242 struct btrfs_path *path;
244 path = btrfs_alloc_path();
245 if (!path)
252 di = btrfs_lookup_match_dir(NULL, root, path, &key, name->name,
275 leaf = path->nodes[0];
276 slot = path->slots[0];
285 btrfs_free_path(path);
294 * @path: Path to use for the search.
310 struct btrfs_path *path, u64 dir,
320 di = btrfs_lookup_match_dir(trans, root, path, &key, name->name,
329 btrfs_search_dir_index_item(struct btrfs_root *root, struct btrfs_path *path,
340 btrfs_for_each_slot(root, &key, &key, path, ret) {
344 di = btrfs_match_dir_item_name(root->fs_info, path,
358 struct btrfs_path *path, u64 dir,
369 di = btrfs_lookup_match_dir(trans, root, path, &key, name, name_len, mod);
377 * helper function to look at the directory item pointed to by 'path'
382 struct btrfs_path *path,
392 leaf = path->nodes[0];
393 dir_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dir_item);
395 total_len = btrfs_item_size(leaf, path->slots[0]);
419 struct btrfs_path *path,
428 leaf = path->nodes[0];
431 item_len = btrfs_item_size(leaf, path->slots[0]);
433 ret = btrfs_del_item(trans, root, path);
439 start = btrfs_item_ptr_offset(leaf, path->slots[0]);
442 btrfs_truncate_item(trans, path, item_len - sub_item_len, 1);