Lines Matching refs:num_bytes

407 	u64 num_bytes;  in compress_file_range()  local
469 num_bytes = ALIGN(end - start + 1, blocksize); in compress_file_range()
470 num_bytes = max(blocksize, num_bytes); in compress_file_range()
581 num_bytes = total_in; in compress_file_range()
611 add_async_extent(async_cow, start, num_bytes, in compress_file_range()
615 if (start + num_bytes < end) { in compress_file_range()
616 start += num_bytes; in compress_file_range()
874 u64 num_bytes) in get_extent_allocation_hint() argument
881 em = search_extent_mapping(em_tree, start, num_bytes); in get_extent_allocation_hint()
926 u64 num_bytes; in cow_file_range() local
942 num_bytes = ALIGN(end - start + 1, blocksize); in cow_file_range()
943 num_bytes = max(blocksize, num_bytes); in cow_file_range()
944 disk_num_bytes = num_bytes; in cow_file_range()
947 if (num_bytes < 64 * 1024 && in cow_file_range()
974 alloc_hint = get_extent_allocation_hint(inode, start, num_bytes); in cow_file_range()
975 btrfs_drop_extent_cache(inode, start, start + num_bytes - 1, 0); in cow_file_range()
1053 num_bytes -= cur_alloc_size; in cow_file_range()
1189 u64 bytenr, u64 num_bytes) in csum_exist_in_range() argument
1196 bytenr + num_bytes - 1, &list, 0); in csum_exist_in_range()
1231 u64 num_bytes; in run_delalloc_nocow() local
1304 num_bytes = 0; in run_delalloc_nocow()
1357 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1372 if (csum_exist_in_range(root, disk_bytenr, num_bytes)) in run_delalloc_nocow()
1421 em->len = num_bytes; in run_delalloc_nocow()
1422 em->block_len = num_bytes; in run_delalloc_nocow()
1449 num_bytes, num_bytes, type); in run_delalloc_nocow()
1455 num_bytes); in run_delalloc_nocow()
1464 cur_offset + num_bytes - 1, in run_delalloc_nocow()
2070 u64 num_bytes, u64 ram_bytes, in insert_reserved_file_extent() argument
2096 file_pos + num_bytes, NULL, 0, in insert_reserved_file_extent()
2120 btrfs_set_file_extent_num_bytes(leaf, fi, num_bytes); in insert_reserved_file_extent()
2129 inode_add_bytes(inode, num_bytes); in insert_reserved_file_extent()
2157 u64 num_bytes; member
2259 u64 num_bytes; in record_one_backref() local
2334 num_bytes = btrfs_file_extent_num_bytes(leaf, extent); in record_one_backref()
2337 old->len || extent_offset + num_bytes <= in record_one_backref()
2352 backref->num_bytes = num_bytes; in record_one_backref()
2444 prev->file_pos + prev->num_bytes == backref->file_pos) in relink_extent_backref()
2483 lock_end = backref->file_pos + backref->num_bytes - 1; in relink_extent_backref()
2525 len = min(backref->extent_offset + backref->num_bytes, in relink_extent_backref()
2726 u64 num_bytes; in record_old_file_extents() local
2755 num_bytes = btrfs_file_extent_num_bytes(l, extent); in record_old_file_extents()
2756 if (key.offset + num_bytes < new->file_pos) in record_old_file_extents()
2770 end = min(new->file_pos + new->len, key.offset + num_bytes); in record_old_file_extents()
7189 u64 num_bytes; in can_nocow_extent() local
7261 num_bytes = min(offset + *len, extent_end) - offset; in can_nocow_extent()
7265 range_end = round_up(offset + num_bytes, root->sectorsize) - 1; in can_nocow_extent()
7302 if (csum_exist_in_range(root, disk_bytenr, num_bytes)) in can_nocow_extent()
7308 *len = num_bytes; in can_nocow_extent()
9763 u64 start, u64 num_bytes, u64 min_size, in __btrfs_prealloc_file_range() argument
9780 while (num_bytes > 0) { in __btrfs_prealloc_file_range()
9789 cur_bytes = min(num_bytes, 256ULL * 1024 * 1024); in __btrfs_prealloc_file_range()
9854 num_bytes -= ins.offset; in __btrfs_prealloc_file_range()
9888 u64 start, u64 num_bytes, u64 min_size, in btrfs_prealloc_file_range() argument
9891 return __btrfs_prealloc_file_range(inode, mode, start, num_bytes, in btrfs_prealloc_file_range()
9898 u64 start, u64 num_bytes, u64 min_size, in btrfs_prealloc_file_range_trans() argument
9901 return __btrfs_prealloc_file_range(inode, mode, start, num_bytes, in btrfs_prealloc_file_range_trans()