Lines Matching refs:leaf
12 struct extent_buffer *leaf, in verify_dir_item() argument
16 u8 type = btrfs_dir_type(leaf, dir_item); in verify_dir_item()
21 if (btrfs_dir_name_len(leaf, dir_item) > namelen) { in verify_dir_item()
23 (unsigned)btrfs_dir_data_len(leaf, dir_item)); in verify_dir_item()
28 if ((btrfs_dir_data_len(leaf, dir_item) + in verify_dir_item()
29 btrfs_dir_name_len(leaf, dir_item)) > in verify_dir_item()
32 (unsigned)btrfs_dir_name_len(leaf, dir_item), in verify_dir_item()
33 (unsigned)btrfs_dir_data_len(leaf, dir_item)); in verify_dir_item()
49 struct extent_buffer *leaf; in btrfs_match_dir_item_name() local
51 leaf = path->nodes[0]; in btrfs_match_dir_item_name()
52 dir_item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_dir_item); in btrfs_match_dir_item_name()
53 total_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_match_dir_item_name()
54 if (verify_dir_item(root, leaf, dir_item)) in btrfs_match_dir_item_name()
59 btrfs_dir_name_len(leaf, dir_item) + in btrfs_match_dir_item_name()
60 btrfs_dir_data_len(leaf, dir_item); in btrfs_match_dir_item_name()
68 if (btrfs_dir_name_len(leaf, dir_item) == name_len && in btrfs_match_dir_item_name()
69 memcmp_extent_buffer(leaf, name, name_ptr, name_len) == 0) in btrfs_match_dir_item_name()
90 struct extent_buffer *leaf; in btrfs_lookup_dir_item() local
106 leaf = path->nodes[0]; in btrfs_lookup_dir_item()
107 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_dir_item()