/linux/fs/btrfs/tests/ |
H A D | extent-map-tests.c | 31 "em leak: em (start %llu len %llu disk_bytenr %llu disk_num_bytes %llu offset %llu) refs %d", in free_extent_map_tree() 33 em->disk_num_bytes, em->offset, in free_extent_map_tree() 81 em->disk_num_bytes = SZ_16K; in test_case_1() 103 em->disk_num_bytes = SZ_4K; in test_case_1() 125 em->disk_num_bytes = len; in test_case_1() 141 em->disk_bytenr != 0 || em->disk_num_bytes != SZ_16K) { in test_case_1() 143 "case1 [%llu %llu]: ret %d return a wrong em (start %llu len %llu disk_bytenr %llu disk_num_bytes %llu", in test_case_1() 145 em->disk_bytenr, em->disk_num_bytes); in test_case_1() 180 em->disk_num_bytes = 0; in test_case_2() 202 em->disk_num_bytes in test_case_2() [all...] |
/linux/fs/btrfs/ |
H A D | extent_map.c | 192 return em->disk_num_bytes; in extent_map_block_len() 262 * Only touches disk_bytenr/disk_num_bytes/offset/ram_bytes. 296 new_disk_num_bytes = max(prev->disk_bytenr + prev->disk_num_bytes, in merge_ondisk_extents() 297 next->disk_bytenr + next->disk_num_bytes) - in merge_ondisk_extents() 302 merged->disk_num_bytes = new_disk_num_bytes; in merge_ondisk_extents() 313 "%s, start=%llu len=%llu disk_bytenr=%llu disk_num_bytes=%llu ram_bytes=%llu offset=%llu flags=0x%x", in dump_extent_map() 314 prefix, em->start, em->len, em->disk_bytenr, em->disk_num_bytes, in dump_extent_map() 325 if (em->disk_num_bytes == 0) in validate_extent_map() 326 dump_extent_map(fs_info, "zero disk_num_bytes", em); in validate_extent_map() 329 if (em->offset + em->len > em->disk_num_bytes in validate_extent_map() [all...] |
H A D | ordered-data.h | 109 u64 disk_num_bytes; member 181 u64 disk_num_bytes; member
|
H A D | ordered-data.c | 150 u64 ram_bytes, u64 disk_bytenr, u64 disk_num_bytes, in alloc_ordered_extent() argument 185 entry->disk_num_bytes = disk_num_bytes; in alloc_ordered_extent() 270 * @disk_num_bytes: Size of extent on disk. 313 file_extent->disk_num_bytes, in btrfs_alloc_ordered_extent() 670 release = entry->disk_num_bytes; in btrfs_remove_ordered_extent() 780 ordered->disk_bytenr + ordered->disk_num_bytes <= range_start) { in btrfs_wait_ordered_extents() 1271 if (WARN_ON_ONCE(ordered->bytes_left != ordered->disk_num_bytes)) in btrfs_split_ordered_extent() 1275 if (WARN_ON_ONCE(ordered->disk_num_bytes != ordered->num_bytes)) in btrfs_split_ordered_extent() 1289 * disk_num_bytes field in btrfs_split_ordered_extent() [all...] |
H A D | extent_map.h | 74 * btrfs_file_extent_item::disk_num_bytes. 76 u64 disk_num_bytes; member
|
H A D | inode.c | 1147 file_extent.disk_num_bytes = ins.offset; in submit_one_async_extent() 1384 file_extent.disk_num_bytes = ins.offset; in cow_file_range() 1857 args->file_extent.disk_num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in can_nocow_file_extent() 2937 u64 disk_num_bytes = btrfs_stack_file_extent_disk_num_bytes(stack_fi); in insert_reserved_file_extent() local 3006 ins.offset = disk_num_bytes; in insert_reserved_file_extent() 3046 oe->disk_num_bytes); in insert_ordered_extent_file_extent() 3112 ordered_extent->disk_num_bytes); in btrfs_finish_one_ordered() 3182 ordered_extent->disk_num_bytes); in btrfs_finish_one_ordered() 3190 ordered_extent->disk_num_bytes); in btrfs_finish_one_ordered() 3292 ordered_extent->disk_num_bytes, in btrfs_finish_one_ordered() 9665 u64 num_bytes, ram_bytes, disk_num_bytes; btrfs_do_encoded_write() local [all...] |
H A D | file-item.c | 1291 em->disk_num_bytes = 0; in btrfs_extent_item_to_extent_map() 1296 em->disk_num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_extent_item_to_extent_map() 1303 * extents with ram_bytes smaller than disk_num_bytes. in btrfs_extent_item_to_extent_map() 1304 * Not a big deal, just always use disk_num_bytes in btrfs_extent_item_to_extent_map() 1307 em->ram_bytes = em->disk_num_bytes; in btrfs_extent_item_to_extent_map()
|
H A D | direct-io.c | 198 file_extent.disk_num_bytes = ins.offset; in btrfs_new_extent_direct() 683 if (ordered->disk_num_bytes == len) { in btrfs_extract_ordered_extent()
|
H A D | accessors.h | 880 struct btrfs_file_extent_item, disk_num_bytes, 64); 891 disk_num_bytes, 64);
|
H A D | compression.c | 390 cb->compressed_len = ordered->disk_num_bytes; in btrfs_submit_compressed_write() 592 compressed_len = em->disk_num_bytes; in btrfs_submit_compressed_read()
|
H A D | tree-log.c | 4450 u64 disk_num_bytes; in copy_items() local 4504 disk_num_bytes = btrfs_file_extent_disk_num_bytes(src, extent); in copy_items() 4508 extent_num_bytes = disk_num_bytes; in copy_items() 4704 csum_len = em->disk_num_bytes; in log_extent_csums() 4756 block_len = em->disk_num_bytes; in log_one_extent()
|
H A D | defrag.c | 693 em->disk_num_bytes = 0; in defrag_get_extent()
|
H A D | tree-checker.c | 307 CHECK_FE_ALIGNED(leaf, slot, fi, disk_num_bytes, sectorsize) || in check_extent_data_item() 345 * disk_num_bytes. in check_extent_data_item() 356 "mismatch ram_bytes (%llu) and disk_num_bytes (%llu) for non-compressed extent", in check_extent_data_item()
|
H A D | zoned.c | 1905 while (len < ordered->disk_num_bytes) { in btrfs_finish_ordered_zoned()
|
H A D | file.c | 2166 hole_em->disk_num_bytes = 0; in fill_holes()
|
H A D | extent_io.c | 683 ordered->disk_num_bytes - file_offset); in alloc_new_bio()
|
H A D | relocation.c | 2758 em->disk_num_bytes = em->len; in setup_relocation_extent_mapping()
|
/linux/include/uapi/linux/ |
H A D | btrfs_tree.h | 1103 __le64 disk_num_bytes; member
|
/linux/include/trace/events/ |
H A D | btrfs.h | 369 __field( u64, disk_num_bytes ) 385 __entry->disk_num_bytes = btrfs_file_extent_disk_num_bytes(l, fi); 397 "disk_num_bytes=%llu extent_offset=%llu type=%s " 403 __entry->disk_bytenr, __entry->disk_num_bytes, 524 __entry->disk_len = ordered->disk_num_bytes;
|