Lines Matching refs:num_bytes

400 	u64 num_bytes;  in compress_file_range()  local
462 num_bytes = ALIGN(end - start + 1, blocksize); in compress_file_range()
463 num_bytes = max(blocksize, num_bytes); in compress_file_range()
574 num_bytes = total_in; in compress_file_range()
604 add_async_extent(async_cow, start, num_bytes, in compress_file_range()
608 if (start + num_bytes < end) { in compress_file_range()
609 start += num_bytes; in compress_file_range()
867 u64 num_bytes) in get_extent_allocation_hint() argument
874 em = search_extent_mapping(em_tree, start, num_bytes); in get_extent_allocation_hint()
919 u64 num_bytes; in cow_file_range() local
935 num_bytes = ALIGN(end - start + 1, blocksize); in cow_file_range()
936 num_bytes = max(blocksize, num_bytes); in cow_file_range()
937 disk_num_bytes = num_bytes; in cow_file_range()
940 if (num_bytes < 64 * 1024 && in cow_file_range()
967 alloc_hint = get_extent_allocation_hint(inode, start, num_bytes); in cow_file_range()
968 btrfs_drop_extent_cache(inode, start, start + num_bytes - 1, 0); in cow_file_range()
1046 num_bytes -= cur_alloc_size; in cow_file_range()
1179 u64 bytenr, u64 num_bytes) in csum_exist_in_range() argument
1186 bytenr + num_bytes - 1, &list, 0); in csum_exist_in_range()
1221 u64 num_bytes; in run_delalloc_nocow() local
1294 num_bytes = 0; in run_delalloc_nocow()
1347 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1362 if (csum_exist_in_range(root, disk_bytenr, num_bytes)) in run_delalloc_nocow()
1411 em->len = num_bytes; in run_delalloc_nocow()
1412 em->block_len = num_bytes; in run_delalloc_nocow()
1439 num_bytes, num_bytes, type); in run_delalloc_nocow()
1445 num_bytes); in run_delalloc_nocow()
1454 cur_offset + num_bytes - 1, in run_delalloc_nocow()
2054 u64 num_bytes, u64 ram_bytes, in insert_reserved_file_extent() argument
2080 file_pos + num_bytes, NULL, 0, in insert_reserved_file_extent()
2104 btrfs_set_file_extent_num_bytes(leaf, fi, num_bytes); in insert_reserved_file_extent()
2113 inode_add_bytes(inode, num_bytes); in insert_reserved_file_extent()
2135 u64 num_bytes; member
2237 u64 num_bytes; in record_one_backref() local
2312 num_bytes = btrfs_file_extent_num_bytes(leaf, extent); in record_one_backref()
2315 old->len || extent_offset + num_bytes <= in record_one_backref()
2330 backref->num_bytes = num_bytes; in record_one_backref()
2422 prev->file_pos + prev->num_bytes == backref->file_pos) in relink_extent_backref()
2461 lock_end = backref->file_pos + backref->num_bytes - 1; in relink_extent_backref()
2503 len = min(backref->extent_offset + backref->num_bytes, in relink_extent_backref()
2705 u64 num_bytes; in record_old_file_extents() local
2734 num_bytes = btrfs_file_extent_num_bytes(l, extent); in record_old_file_extents()
2735 if (key.offset + num_bytes < new->file_pos) in record_old_file_extents()
2749 end = min(new->file_pos + new->len, key.offset + num_bytes); in record_old_file_extents()
4000 u64 num_bytes = btrfs_calc_trans_metadata_size(root, 5); in __unlink_start_trans() local
4007 num_bytes, 5); in __unlink_start_trans()
4013 trans->bytes_reserved = num_bytes; in __unlink_start_trans()
7122 u64 num_bytes; in can_nocow_extent() local
7194 num_bytes = min(offset + *len, extent_end) - offset; in can_nocow_extent()
7198 range_end = round_up(offset + num_bytes, root->sectorsize) - 1; in can_nocow_extent()
7235 if (csum_exist_in_range(root, disk_bytenr, num_bytes)) in can_nocow_extent()
7241 *len = num_bytes; in can_nocow_extent()
9622 u64 start, u64 num_bytes, u64 min_size, in __btrfs_prealloc_file_range() argument
9638 while (num_bytes > 0) { in __btrfs_prealloc_file_range()
9647 cur_bytes = min(num_bytes, 256ULL * 1024 * 1024); in __btrfs_prealloc_file_range()
9704 num_bytes -= ins.offset; in __btrfs_prealloc_file_range()
9738 u64 start, u64 num_bytes, u64 min_size, in btrfs_prealloc_file_range() argument
9741 return __btrfs_prealloc_file_range(inode, mode, start, num_bytes, in btrfs_prealloc_file_range()
9748 u64 start, u64 num_bytes, u64 min_size, in btrfs_prealloc_file_range_trans() argument
9751 return __btrfs_prealloc_file_range(inode, mode, start, num_bytes, in btrfs_prealloc_file_range_trans()