Lines Matching refs:cur_offset

2042 	u64 cur_offset = start;  in run_delalloc_nocow()  local
2064 while (cur_offset <= end) { in run_delalloc_nocow()
2074 cur_offset, 0); in run_delalloc_nocow()
2128 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
2130 cow_start = cur_offset; in run_delalloc_nocow()
2131 cur_offset = found_key.offset; in run_delalloc_nocow()
2154 if (extent_end <= cur_offset) { in run_delalloc_nocow()
2159 nocow_args.start = cur_offset; in run_delalloc_nocow()
2180 cow_start = cur_offset; in run_delalloc_nocow()
2181 cur_offset = extent_end; in run_delalloc_nocow()
2182 if (cur_offset > end) in run_delalloc_nocow()
2207 &nocow_args, cur_offset, in run_delalloc_nocow()
2212 cur_offset = extent_end; in run_delalloc_nocow()
2216 if (cur_offset <= end && cow_start == (u64)-1) in run_delalloc_nocow()
2217 cow_start = cur_offset; in run_delalloc_nocow()
2271 cur_offset = cow_start; in run_delalloc_nocow()
2273 if (cur_offset > start) { in run_delalloc_nocow()
2274 btrfs_cleanup_ordered_extents(inode, start, cur_offset - start); in run_delalloc_nocow()
2275 cleanup_dirty_folios(inode, locked_folio, start, cur_offset - 1, ret); in run_delalloc_nocow()
2284 cur_offset = cow_end + 1; in run_delalloc_nocow()
2290 if (cur_offset < end) { in run_delalloc_nocow()
2293 btrfs_lock_extent(&inode->io_tree, cur_offset, end, &cached); in run_delalloc_nocow()
2294 extent_clear_unlock_delalloc(inode, cur_offset, end, in run_delalloc_nocow()
2301 btrfs_qgroup_free_data(inode, NULL, cur_offset, end - cur_offset + 1, NULL); in run_delalloc_nocow()
5117 u64 cur_offset; in btrfs_cont_expand() local
5135 cur_offset = hole_start; in btrfs_cont_expand()
5137 em = btrfs_get_extent(inode, NULL, cur_offset, block_end - cur_offset); in btrfs_cont_expand()
5145 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
5150 ret = maybe_insert_hole(inode, cur_offset, hole_size); in btrfs_cont_expand()
5155 cur_offset, hole_size); in btrfs_cont_expand()
5161 btrfs_drop_extent_map_range(inode, cur_offset, in btrfs_cont_expand()
5162 cur_offset + hole_size - 1, in btrfs_cont_expand()
5167 hole_em->start = cur_offset; in btrfs_cont_expand()
5179 cur_offset, hole_size); in btrfs_cont_expand()
5186 cur_offset = last_byte; in btrfs_cont_expand()
5187 if (cur_offset >= block_end) in btrfs_cont_expand()
9006 u64 cur_offset = start; in __btrfs_prealloc_file_range() local
9043 &ins, cur_offset); in __btrfs_prealloc_file_range()
9060 btrfs_drop_extent_map_range(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
9061 cur_offset + ins.offset - 1, false); in __btrfs_prealloc_file_range()
9066 em->start = cur_offset; in __btrfs_prealloc_file_range()
9079 cur_offset += ins.offset; in __btrfs_prealloc_file_range()
9087 (cur_offset > inode->i_size)) { in __btrfs_prealloc_file_range()
9088 if (cur_offset > actual_len) in __btrfs_prealloc_file_range()
9091 i_size = cur_offset; in __btrfs_prealloc_file_range()