Lines Matching refs:num_bytes
123 static int data_reloc_print_warning_inode(u64 inum, u64 offset, u64 num_bytes, in data_reloc_print_warning_inode() argument
806 u64 start, u64 end, u64 num_bytes, u32 small_write) in inode_should_defrag() argument
809 if (num_bytes < small_write && in inode_should_defrag()
1149 file_extent.num_bytes = async_extent->ram_size; in submit_one_async_extent()
1208 u64 num_bytes) in btrfs_get_extent_allocation_hint() argument
1215 em = btrfs_search_extent_mapping(em_tree, start, num_bytes); in btrfs_get_extent_allocation_hint()
1274 u64 num_bytes; in cow_file_range() local
1289 num_bytes = ALIGN(end - start + 1, blocksize); in cow_file_range()
1290 num_bytes = max(blocksize, num_bytes); in cow_file_range()
1291 ASSERT(num_bytes <= btrfs_super_total_bytes(fs_info->super_copy)); in cow_file_range()
1293 inode_should_defrag(inode, start, end, num_bytes, SZ_64K); in cow_file_range()
1313 alloc_hint = btrfs_get_extent_allocation_hint(inode, start, num_bytes); in cow_file_range()
1338 min_alloc_size = num_bytes; in cow_file_range()
1342 while (num_bytes > 0) { in cow_file_range()
1346 ret = btrfs_reserve_extent(root, num_bytes, num_bytes, in cow_file_range()
1385 file_extent.num_bytes = ins.offset; in cow_file_range()
1439 if (num_bytes < cur_alloc_size) in cow_file_range()
1440 num_bytes = 0; in cow_file_range()
1442 num_bytes -= cur_alloc_size; in cow_file_range()
1891 args->file_extent.num_bytes = min(args->end + 1, extent_end) - args->start; in can_nocow_file_extent()
1902 io_start + args->file_extent.num_bytes - 1, in can_nocow_file_extent()
1969 u64 len = nocow_args->file_extent.num_bytes; in nocow_one_range()
2940 u64 num_bytes = btrfs_stack_file_extent_num_bytes(stack_fi); in insert_reserved_file_extent() local
2960 drop_args.end = file_pos + num_bytes; in insert_reserved_file_extent()
2998 num_bytes -= sectorsize; in insert_reserved_file_extent()
3002 btrfs_update_inode_bytes(inode, num_bytes, drop_args.bytes_found); in insert_reserved_file_extent()
3039 u64 num_bytes = oe->num_bytes; in insert_ordered_extent_file_extent() local
3049 num_bytes = oe->truncated_len; in insert_ordered_extent_file_extent()
3050 btrfs_set_stack_file_extent_num_bytes(&stack_fi, num_bytes); in insert_ordered_extent_file_extent()
3086 u64 logical_len = ordered_extent->num_bytes; in btrfs_finish_one_ordered()
3093 end = start + ordered_extent->num_bytes - 1; in btrfs_finish_one_ordered()
3199 ordered_extent->num_bytes, trans->transid); in btrfs_finish_one_ordered()
7276 range_end = round_up(offset + nocow_args.file_extent.num_bytes, in can_nocow_extent()
7287 *len = nocow_args.file_extent.num_bytes; in can_nocow_extent()
7315 ASSERT(file_extent->num_bytes <= file_extent->ram_bytes); in btrfs_create_io_em()
7319 ASSERT(file_extent->disk_num_bytes == file_extent->num_bytes); in btrfs_create_io_em()
7320 ASSERT(file_extent->ram_bytes == file_extent->num_bytes); in btrfs_create_io_em()
7333 ASSERT(file_extent->num_bytes <= file_extent->ram_bytes); in btrfs_create_io_em()
7342 em->len = file_extent->num_bytes; in btrfs_create_io_em()
7517 range_end = min(ordered->file_offset + ordered->num_bytes - 1, in btrfs_invalidate_folio()
7939 ordered->file_offset, ordered->num_bytes); in btrfs_destroy_inode()
8998 u64 start, u64 num_bytes, u64 min_size, in __btrfs_prealloc_file_range() argument
9013 u64 end = start + num_bytes - 1; in __btrfs_prealloc_file_range()
9017 while (num_bytes > 0) { in __btrfs_prealloc_file_range()
9018 cur_bytes = min_t(u64, num_bytes, SZ_256M); in __btrfs_prealloc_file_range()
9078 num_bytes -= ins.offset; in __btrfs_prealloc_file_range()
9117 u64 start, u64 num_bytes, u64 min_size, in btrfs_prealloc_file_range() argument
9120 return __btrfs_prealloc_file_range(inode, mode, start, num_bytes, in btrfs_prealloc_file_range()
9127 u64 start, u64 num_bytes, u64 min_size, in btrfs_prealloc_file_range_trans() argument
9130 return __btrfs_prealloc_file_range(inode, mode, start, num_bytes, in btrfs_prealloc_file_range_trans()
9674 u64 num_bytes, ram_bytes, disk_num_bytes; in btrfs_do_encoded_write() local
9755 num_bytes = ALIGN(encoded->len, fs_info->sectorsize); in btrfs_do_encoded_write()
9757 end = start + num_bytes - 1; in btrfs_do_encoded_write()
9792 ret = btrfs_wait_ordered_range(inode, start, num_bytes); in btrfs_do_encoded_write()
9801 ordered = btrfs_lookup_ordered_range(inode, start, num_bytes); in btrfs_do_encoded_write()
9818 ret = btrfs_qgroup_reserve_data(inode, &data_reserved, start, num_bytes); in btrfs_do_encoded_write()
9821 ret = btrfs_delalloc_reserve_metadata(inode, num_bytes, disk_num_bytes, in btrfs_do_encoded_write()
9848 file_extent.num_bytes = num_bytes; in btrfs_do_encoded_write()
9874 btrfs_delalloc_release_extents(inode, num_bytes); in btrfs_do_encoded_write()
9884 btrfs_delalloc_release_extents(inode, num_bytes); in btrfs_do_encoded_write()
9888 btrfs_qgroup_free_data(inode, data_reserved, start, num_bytes, NULL); in btrfs_do_encoded_write()
10424 ordered->file_offset + ordered->num_bytes - 1); in btrfs_assert_inode_range_clean()