Lines Matching full:path
21 struct btrfs_path *path, in insert_with_overflow() argument
33 ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); in insert_with_overflow()
36 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in insert_with_overflow()
39 btrfs_extend_item(path, data_size); in insert_with_overflow()
43 leaf = path->nodes[0]; in insert_with_overflow()
44 item = btrfs_item_nr(path->slots[0]); in insert_with_overflow()
45 ptr = btrfs_item_ptr(leaf, path->slots[0], char); in insert_with_overflow()
57 struct btrfs_path *path, u64 objectid, in btrfs_insert_xattr_item() argument
77 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_xattr_item()
83 leaf = path->nodes[0]; in btrfs_insert_xattr_item()
95 btrfs_mark_buffer_dirty(path->nodes[0]); in btrfs_insert_xattr_item()
115 struct btrfs_path *path; in btrfs_insert_dir_item() local
127 path = btrfs_alloc_path(); in btrfs_insert_dir_item()
128 if (!path) in btrfs_insert_dir_item()
134 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_dir_item()
143 leaf = path->nodes[0]; in btrfs_insert_dir_item()
160 btrfs_release_path(path); in btrfs_insert_dir_item()
165 btrfs_free_path(path); in btrfs_insert_dir_item()
175 struct btrfs_root *root, struct btrfs_path *path, in btrfs_lookup_match_dir() argument
183 ret = btrfs_search_slot(trans, root, key, path, ins_len, cow); in btrfs_lookup_match_dir()
189 return btrfs_match_dir_item_name(root->fs_info, path, name, name_len); in btrfs_lookup_match_dir()
197 * @path: Path to use for the search.
210 struct btrfs_path *path, u64 dir, in btrfs_lookup_dir_item() argument
221 di = btrfs_lookup_match_dir(trans, root, path, &key, name, name_len, mod); in btrfs_lookup_dir_item()
237 struct btrfs_path *path; in btrfs_check_dir_item_collision() local
239 path = btrfs_alloc_path(); in btrfs_check_dir_item_collision()
240 if (!path) in btrfs_check_dir_item_collision()
247 di = btrfs_lookup_match_dir(NULL, root, path, &key, name, name_len, 0); in btrfs_check_dir_item_collision()
272 leaf = path->nodes[0]; in btrfs_check_dir_item_collision()
273 slot = path->slots[0]; in btrfs_check_dir_item_collision()
282 btrfs_free_path(path); in btrfs_check_dir_item_collision()
291 * @path: Path to use for the search.
307 struct btrfs_path *path, u64 dir, in btrfs_lookup_dir_index_item() argument
318 di = btrfs_lookup_match_dir(trans, root, path, &key, name, name_len, mod); in btrfs_lookup_dir_index_item()
327 struct btrfs_path *path, u64 dirid, in btrfs_search_dir_index_item() argument
340 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in btrfs_search_dir_index_item()
344 leaf = path->nodes[0]; in btrfs_search_dir_index_item()
348 if (path->slots[0] >= nritems) { in btrfs_search_dir_index_item()
349 ret = btrfs_next_leaf(root, path); in btrfs_search_dir_index_item()
354 leaf = path->nodes[0]; in btrfs_search_dir_index_item()
359 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); in btrfs_search_dir_index_item()
363 di = btrfs_match_dir_item_name(root->fs_info, path, in btrfs_search_dir_index_item()
368 path->slots[0]++; in btrfs_search_dir_index_item()
375 struct btrfs_path *path, u64 dir, in btrfs_lookup_xattr() argument
386 di = btrfs_lookup_match_dir(trans, root, path, &key, name, name_len, mod); in btrfs_lookup_xattr()
394 * helper function to look at the directory item pointed to by 'path'
399 struct btrfs_path *path, in btrfs_match_dir_item_name() argument
409 leaf = path->nodes[0]; in btrfs_match_dir_item_name()
410 dir_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dir_item); in btrfs_match_dir_item_name()
412 total_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_match_dir_item_name()
436 struct btrfs_path *path, in btrfs_delete_one_dir_name() argument
445 leaf = path->nodes[0]; in btrfs_delete_one_dir_name()
448 item_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_delete_one_dir_name()
450 ret = btrfs_del_item(trans, root, path); in btrfs_delete_one_dir_name()
456 start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_delete_one_dir_name()
459 btrfs_truncate_item(path, item_len - sub_item_len, 1); in btrfs_delete_one_dir_name()