Lines Matching +full:1 +full:eb
18 struct extent_buffer *eb; in test_btrfs_split_item() local
51 eb = alloc_dummy_extent_buffer(fs_info, nodesize); in test_btrfs_split_item()
52 path->nodes[0] = eb; in test_btrfs_split_item()
53 if (!eb) { in test_btrfs_split_item()
65 * Passing a NULL trans handle is fine here, we have a dummy root eb in test_btrfs_split_item()
69 write_extent_buffer(eb, value, btrfs_item_ptr_offset(eb, 0), in test_btrfs_split_item()
89 btrfs_item_key_to_cpu(eb, &key, 0); in test_btrfs_split_item()
97 if (btrfs_item_size(eb, 0) != strlen(split1)) { in test_btrfs_split_item()
103 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 0), in test_btrfs_split_item()
113 btrfs_item_key_to_cpu(eb, &key, 1); in test_btrfs_split_item()
116 test_err("invalid key at slot 1"); in test_btrfs_split_item()
121 if (btrfs_item_size(eb, 1) != strlen(split2)) { in test_btrfs_split_item()
127 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 1), in test_btrfs_split_item()
136 key.offset = 1; in test_btrfs_split_item()
144 btrfs_item_key_to_cpu(eb, &key, 0); in test_btrfs_split_item()
152 if (btrfs_item_size(eb, 0) != strlen(split3)) { in test_btrfs_split_item()
158 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 0), in test_btrfs_split_item()
167 btrfs_item_key_to_cpu(eb, &key, 1); in test_btrfs_split_item()
169 key.offset != 1) { in test_btrfs_split_item()
170 test_err("invalid key at slot 1"); in test_btrfs_split_item()
175 if (btrfs_item_size(eb, 1) != strlen(split4)) { in test_btrfs_split_item()
181 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 1), in test_btrfs_split_item()
190 btrfs_item_key_to_cpu(eb, &key, 2); in test_btrfs_split_item()
198 if (btrfs_item_size(eb, 2) != strlen(split2)) { in test_btrfs_split_item()
204 read_extent_buffer(eb, buf, btrfs_item_ptr_offset(eb, 2), in test_btrfs_split_item()