Lines Matching refs:num_bytes
75 u64 num_bytes; in btrfs_dirty_folio() local
89 num_bytes = round_up(write_bytes + pos - start_pos, in btrfs_dirty_folio()
91 ASSERT(num_bytes <= U32_MAX); in btrfs_dirty_folio()
94 end_of_last_block = start_pos + num_bytes - 1; in btrfs_dirty_folio()
109 btrfs_folio_clamp_set_uptodate(fs_info, folio, start_pos, num_bytes); in btrfs_dirty_folio()
110 btrfs_folio_clamp_clear_checked(fs_info, folio, start_pos, num_bytes); in btrfs_dirty_folio()
111 btrfs_folio_clamp_set_dirty(fs_info, folio, start_pos, num_bytes); in btrfs_dirty_folio()
150 u64 num_bytes = 0; in btrfs_drop_extents() local
238 num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_drop_extents()
321 .num_bytes = num_bytes, in btrfs_drop_extents()
420 .num_bytes = num_bytes, in btrfs_drop_extents()
560 u64 num_bytes; in btrfs_mark_extent_written() local
611 num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_mark_extent_written()
701 ref.num_bytes = num_bytes; in btrfs_mark_extent_written()
731 ref.num_bytes = num_bytes; in btrfs_mark_extent_written()
932 ordered->file_offset + ordered->num_bytes > start_pos && in lock_and_cleanup_extent_if_need()
1013 u64 num_bytes = lockend - cur_offset + 1; in btrfs_check_nocow_lock() local
1015 ret = can_nocow_extent(inode, cur_offset, &num_bytes, NULL, nowait); in btrfs_check_nocow_lock()
1026 cur_offset += num_bytes; in btrfs_check_nocow_lock()
2117 u64 num_bytes; in fill_holes() local
2122 num_bytes = btrfs_file_extent_num_bytes(leaf, fi) + in fill_holes()
2124 btrfs_set_file_extent_num_bytes(leaf, fi, num_bytes); in fill_holes()
2125 btrfs_set_file_extent_ram_bytes(leaf, fi, num_bytes); in fill_holes()
2132 u64 num_bytes; in fill_holes() local
2138 num_bytes = btrfs_file_extent_num_bytes(leaf, fi) + end - in fill_holes()
2140 btrfs_set_file_extent_num_bytes(leaf, fi, num_bytes); in fill_holes()
2141 btrfs_set_file_extent_ram_bytes(leaf, fi, num_bytes); in fill_holes()
2369 .num_bytes = extent_info->disk_len, in btrfs_insert_replace_extent()
3358 oe_end = min(oe->file_offset + oe->num_bytes - 1, end); in find_delalloc_subrange()