Lines Matching refs:cur_offset
1912 u64 cur_offset = start; in run_delalloc_nocow() local
1946 cur_offset, 0); in run_delalloc_nocow()
1971 cur_offset = cow_start; in run_delalloc_nocow()
2003 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
2029 if (extent_end <= cur_offset) { in run_delalloc_nocow()
2034 nocow_args.start = cur_offset; in run_delalloc_nocow()
2038 cur_offset = cow_start; in run_delalloc_nocow()
2055 cow_start = cur_offset; in run_delalloc_nocow()
2056 cur_offset = extent_end; in run_delalloc_nocow()
2057 if (cur_offset > end) in run_delalloc_nocow()
2079 nocow_end = cur_offset + nocow_args.num_bytes - 1; in run_delalloc_nocow()
2085 em = create_io_em(inode, cur_offset, nocow_args.num_bytes, in run_delalloc_nocow()
2098 cur_offset, nocow_args.num_bytes, in run_delalloc_nocow()
2105 btrfs_drop_extent_map_range(inode, cur_offset, in run_delalloc_nocow()
2110 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
2133 ret = btrfs_reloc_clone_csums(inode, cur_offset, in run_delalloc_nocow()
2136 extent_clear_unlock_delalloc(inode, cur_offset, nocow_end, in run_delalloc_nocow()
2142 cur_offset = extent_end; in run_delalloc_nocow()
2151 if (cur_offset > end) in run_delalloc_nocow()
2156 if (cur_offset <= end && cow_start == (u64)-1) in run_delalloc_nocow()
2157 cow_start = cur_offset; in run_delalloc_nocow()
2160 cur_offset = end; in run_delalloc_nocow()
2171 if (ret && cur_offset < end) in run_delalloc_nocow()
2172 extent_clear_unlock_delalloc(inode, cur_offset, end, in run_delalloc_nocow()
5056 u64 cur_offset; in btrfs_cont_expand() local
5074 cur_offset = hole_start; in btrfs_cont_expand()
5076 em = btrfs_get_extent(inode, NULL, 0, cur_offset, in btrfs_cont_expand()
5077 block_end - cur_offset); in btrfs_cont_expand()
5085 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
5090 err = maybe_insert_hole(root, inode, cur_offset, in btrfs_cont_expand()
5096 cur_offset, hole_size); in btrfs_cont_expand()
5102 btrfs_drop_extent_map_range(inode, cur_offset, in btrfs_cont_expand()
5103 cur_offset + hole_size - 1, in btrfs_cont_expand()
5108 hole_em->start = cur_offset; in btrfs_cont_expand()
5110 hole_em->orig_start = cur_offset; in btrfs_cont_expand()
5123 cur_offset, hole_size); in btrfs_cont_expand()
5130 cur_offset = last_byte; in btrfs_cont_expand()
5131 if (cur_offset >= block_end) in btrfs_cont_expand()
9883 u64 cur_offset = start; in __btrfs_prealloc_file_range() local
9920 &ins, cur_offset); in __btrfs_prealloc_file_range()
9937 btrfs_drop_extent_map_range(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
9938 cur_offset + ins.offset - 1, false); in __btrfs_prealloc_file_range()
9943 em->start = cur_offset; in __btrfs_prealloc_file_range()
9944 em->orig_start = cur_offset; in __btrfs_prealloc_file_range()
9957 cur_offset += ins.offset; in __btrfs_prealloc_file_range()
9965 (cur_offset > inode->i_size)) { in __btrfs_prealloc_file_range()
9966 if (cur_offset > actual_len) in __btrfs_prealloc_file_range()
9969 i_size = cur_offset; in __btrfs_prealloc_file_range()