Lines Matching refs:leaf
364 struct extent_buffer *leaf = path->nodes[0]; in btrfs_read_extent_inline() local
372 csize = btrfs_file_extent_inline_item_len(leaf, btrfs_item_nr(slot)); in btrfs_read_extent_inline()
373 if (btrfs_file_extent_compression(leaf, fi) == BTRFS_COMPRESS_NONE) { in btrfs_read_extent_inline()
375 read_extent_buffer(leaf, dest, in btrfs_read_extent_inline()
382 dsize = btrfs_file_extent_ram_bytes(leaf, fi); in btrfs_read_extent_inline()
389 read_extent_buffer(leaf, cbuf, btrfs_file_extent_inline_start(fi), in btrfs_read_extent_inline()
391 ret = btrfs_decompress(btrfs_file_extent_compression(leaf, fi), in btrfs_read_extent_inline()
418 struct extent_buffer *leaf = path->nodes[0]; in btrfs_read_extent_reg() local
419 struct btrfs_fs_info *fs_info = leaf->fs_info; in btrfs_read_extent_reg()
434 btrfs_item_key_to_cpu(leaf, &key, slot); in btrfs_read_extent_reg()
435 extent_num_bytes = btrfs_file_extent_num_bytes(leaf, fi); in btrfs_read_extent_reg()
442 if (btrfs_file_extent_type(leaf, fi) == BTRFS_FILE_EXTENT_PREALLOC || in btrfs_read_extent_reg()
443 btrfs_file_extent_disk_bytenr(leaf, fi) == 0) { in btrfs_read_extent_reg()
448 if (btrfs_file_extent_compression(leaf, fi) == BTRFS_COMPRESS_NONE) { in btrfs_read_extent_reg()
451 logical = btrfs_file_extent_disk_bytenr(leaf, fi) + in btrfs_read_extent_reg()
452 btrfs_file_extent_offset(leaf, fi) + in btrfs_read_extent_reg()
469 csize = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_read_extent_reg()
470 dsize = btrfs_file_extent_ram_bytes(leaf, fi); in btrfs_read_extent_reg()
471 disk_bytenr = btrfs_file_extent_disk_bytenr(leaf, fi); in btrfs_read_extent_reg()
495 ret = btrfs_decompress(btrfs_file_extent_compression(leaf, fi), cbuf, in btrfs_read_extent_reg()
502 memcpy(dest, dbuf + btrfs_file_extent_offset(leaf, fi), len); in btrfs_read_extent_reg()
615 struct extent_buffer *leaf = path->nodes[0]; in read_and_truncate_page() local
616 struct btrfs_fs_info *fs_info = leaf->fs_info; in read_and_truncate_page()
629 extent_type = btrfs_file_extent_type(leaf, fi); in read_and_truncate_page()