Lines Matching refs:leaf

357 +/* Item header for per-leaf lookup */
374 + * keys-pointers pairs for per-node (non-leaf) lookup
645 + /* leaf allocations are done in leafsize units */
648 + /* leaf allocations are done in leafsize units */
1363 +/* helper function to cast into the data area of the leaf. */
1364 +#define btrfs_item_ptr(leaf, slot, type) \
1365 + ((type *)(btrfs_leaf_data(leaf) + \
1366 + btrfs_item_offset_nr(leaf, slot)))
1368 +#define btrfs_item_ptr_offset(leaf, slot) \
1369 + ((unsigned long)(btrfs_leaf_data(leaf) + \
1370 + btrfs_item_offset_nr(leaf, slot)))
1469 + struct extent_buffer *leaf,
1847 + btrfs_msg("Btrfs leaf size (%d) != %d unsupported\n",
2271 + struct extent_buffer *leaf,
2282 + chunk_size = btrfs_chunk_length(leaf, chunk);
2288 + num_stripes = btrfs_chunk_num_stripes(leaf, chunk);
2292 + map->io_width = btrfs_chunk_io_width(leaf, chunk);
2293 + map->io_align = btrfs_chunk_io_align(leaf, chunk);
2294 + map->sector_size = btrfs_chunk_sector_size(leaf, chunk);
2295 + map->stripe_len = btrfs_chunk_stripe_len(leaf, chunk);
2296 + map->type = btrfs_chunk_type(leaf, chunk);
2297 + map->sub_stripes = btrfs_chunk_sub_stripes(leaf, chunk);
2301 + btrfs_stripe_offset_nr(leaf, chunk, i);
2303 + btrfs_stripe_devid_nr(leaf, chunk, i);
2393 + struct extent_buffer *leaf;
2408 + leaf = &path->nodes[0];
2414 + btrfs_item_key_to_cpu(leaf, &found_key, slot);
2417 + chunk = btrfs_item_ptr(leaf, slot, struct btrfs_chunk);
2418 + return check_read_chunk(&found_key, leaf,
2742 + * tree. All components of the @path from leaf to root
2774 + * non-leaf,
2795 + * Find the next leaf in accordance with tree order;
2800 + * Preconditions: all @path components from leaf to
2802 + * valid attached data buffer with initial leaf.
2804 + * an attached data buffer with the next leaf.
2853 + * is attached to leaf node.
3283 + struct extent_buffer *leaf;
3287 + leaf = &path->nodes[0];
3288 + sd = btrfs_item_ptr(leaf,
3291 + mode = btrfs_inode_mode(leaf, sd);
3292 + size = btrfs_inode_size(leaf, sd);
3320 + filemax = btrfs_inode_size(leaf, sd);