• Home
  • Raw
  • Download

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()
582 num_bytes = total_in; in compress_file_range()
612 add_async_extent(async_cow, start, num_bytes, in compress_file_range()
616 if (start + num_bytes < end) { in compress_file_range()
617 start += num_bytes; in compress_file_range()
875 u64 num_bytes) in get_extent_allocation_hint() argument
882 em = search_extent_mapping(em_tree, start, num_bytes); in get_extent_allocation_hint()
927 u64 num_bytes; in cow_file_range() local
943 num_bytes = ALIGN(end - start + 1, blocksize); in cow_file_range()
944 num_bytes = max(blocksize, num_bytes); in cow_file_range()
947 if (num_bytes < 64 * 1024 && in cow_file_range()
971 BUG_ON(num_bytes > btrfs_super_total_bytes(root->fs_info->super_copy)); in cow_file_range()
973 alloc_hint = get_extent_allocation_hint(inode, start, num_bytes); in cow_file_range()
974 btrfs_drop_extent_cache(inode, start, start + num_bytes - 1, 0); in cow_file_range()
988 min_alloc_size = num_bytes; in cow_file_range()
992 while (num_bytes > 0) { in cow_file_range()
995 cur_alloc_size = num_bytes; in cow_file_range()
1050 if (num_bytes < cur_alloc_size) in cow_file_range()
1067 if (num_bytes < cur_alloc_size) in cow_file_range()
1068 num_bytes = 0; in cow_file_range()
1070 num_bytes -= cur_alloc_size; in cow_file_range()
1206 u64 bytenr, u64 num_bytes) in csum_exist_in_range() argument
1213 bytenr + num_bytes - 1, &list, 0); in csum_exist_in_range()
1250 u64 num_bytes; in run_delalloc_nocow() local
1326 num_bytes = 0; in run_delalloc_nocow()
1392 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1407 ret = csum_exist_in_range(root, disk_bytenr, num_bytes); in run_delalloc_nocow()
1468 em->len = num_bytes; in run_delalloc_nocow()
1469 em->block_len = num_bytes; in run_delalloc_nocow()
1496 num_bytes, num_bytes, type); in run_delalloc_nocow()
1502 num_bytes); in run_delalloc_nocow()
1511 cur_offset + num_bytes - 1, in run_delalloc_nocow()
2125 u64 num_bytes, u64 ram_bytes, in insert_reserved_file_extent() argument
2151 file_pos + num_bytes, NULL, 0, in insert_reserved_file_extent()
2175 btrfs_set_file_extent_num_bytes(leaf, fi, num_bytes); in insert_reserved_file_extent()
2184 inode_add_bytes(inode, num_bytes); in insert_reserved_file_extent()
2212 u64 num_bytes; member
2314 u64 num_bytes; in record_one_backref() local
2389 num_bytes = btrfs_file_extent_num_bytes(leaf, extent); in record_one_backref()
2392 old->len || extent_offset + num_bytes <= in record_one_backref()
2407 backref->num_bytes = num_bytes; in record_one_backref()
2499 prev->file_pos + prev->num_bytes == backref->file_pos) in relink_extent_backref()
2538 lock_end = backref->file_pos + backref->num_bytes - 1; in relink_extent_backref()
2580 len = min(backref->extent_offset + backref->num_bytes, in relink_extent_backref()
2781 u64 num_bytes; in record_old_file_extents() local
2810 num_bytes = btrfs_file_extent_num_bytes(l, extent); in record_old_file_extents()
2811 if (key.offset + num_bytes < new->file_pos) in record_old_file_extents()
2825 end = min(new->file_pos + new->len, key.offset + num_bytes); in record_old_file_extents()
7286 u64 num_bytes; in can_nocow_extent() local
7358 num_bytes = min(offset + *len, extent_end) - offset; in can_nocow_extent()
7362 range_end = round_up(offset + num_bytes, root->sectorsize) - 1; in can_nocow_extent()
7399 if (csum_exist_in_range(root, disk_bytenr, num_bytes)) in can_nocow_extent()
7405 *len = num_bytes; in can_nocow_extent()
9871 u64 start, u64 num_bytes, u64 min_size, in __btrfs_prealloc_file_range() argument
9888 while (num_bytes > 0) { in __btrfs_prealloc_file_range()
9897 cur_bytes = min(num_bytes, 256ULL * 1024 * 1024); in __btrfs_prealloc_file_range()
9962 num_bytes -= ins.offset; in __btrfs_prealloc_file_range()
9996 u64 start, u64 num_bytes, u64 min_size, in btrfs_prealloc_file_range() argument
9999 return __btrfs_prealloc_file_range(inode, mode, start, num_bytes, in btrfs_prealloc_file_range()
10006 u64 start, u64 num_bytes, u64 min_size, in btrfs_prealloc_file_range_trans() argument
10009 return __btrfs_prealloc_file_range(inode, mode, start, num_bytes, in btrfs_prealloc_file_range_trans()