Lines Matching refs:cur_offset

1586 	u64 cur_offset = start;  in run_delalloc_nocow()  local
1620 cur_offset, 0); in run_delalloc_nocow()
1645 cur_offset = cow_start; in run_delalloc_nocow()
1677 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1704 if (extent_end <= cur_offset) { in run_delalloc_nocow()
1748 cur_offset = cow_start; in run_delalloc_nocow()
1756 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1757 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1778 cur_offset = cow_start; in run_delalloc_nocow()
1807 cow_start = cur_offset; in run_delalloc_nocow()
1808 cur_offset = extent_end; in run_delalloc_nocow()
1809 if (cur_offset > end) in run_delalloc_nocow()
1835 em = create_io_em(inode, cur_offset, num_bytes, in run_delalloc_nocow()
1847 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
1852 btrfs_drop_extent_cache(inode, cur_offset, in run_delalloc_nocow()
1853 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1858 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
1877 ret = btrfs_reloc_clone_csums(inode, cur_offset, in run_delalloc_nocow()
1880 extent_clear_unlock_delalloc(inode, cur_offset, in run_delalloc_nocow()
1881 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1887 cur_offset = extent_end; in run_delalloc_nocow()
1896 if (cur_offset > end) in run_delalloc_nocow()
1901 if (cur_offset <= end && cow_start == (u64)-1) in run_delalloc_nocow()
1902 cow_start = cur_offset; in run_delalloc_nocow()
1905 cur_offset = end; in run_delalloc_nocow()
1916 if (ret && cur_offset < end) in run_delalloc_nocow()
1917 extent_clear_unlock_delalloc(inode, cur_offset, end, in run_delalloc_nocow()
5201 u64 cur_offset; in btrfs_cont_expand() local
5219 cur_offset = hole_start; in btrfs_cont_expand()
5221 em = btrfs_get_extent(inode, NULL, 0, cur_offset, in btrfs_cont_expand()
5222 block_end - cur_offset); in btrfs_cont_expand()
5230 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
5235 err = maybe_insert_hole(root, inode, cur_offset, in btrfs_cont_expand()
5241 cur_offset, hole_size); in btrfs_cont_expand()
5245 btrfs_drop_extent_cache(inode, cur_offset, in btrfs_cont_expand()
5246 cur_offset + hole_size - 1, 0); in btrfs_cont_expand()
5253 hole_em->start = cur_offset; in btrfs_cont_expand()
5255 hole_em->orig_start = cur_offset; in btrfs_cont_expand()
5270 btrfs_drop_extent_cache(inode, cur_offset, in btrfs_cont_expand()
5271 cur_offset + in btrfs_cont_expand()
5277 cur_offset, hole_size); in btrfs_cont_expand()
5284 cur_offset = last_byte; in btrfs_cont_expand()
5285 if (cur_offset >= block_end) in btrfs_cont_expand()
10251 u64 cur_offset = start; in __btrfs_prealloc_file_range() local
10288 &ins, cur_offset); in __btrfs_prealloc_file_range()
10303 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
10304 cur_offset + ins.offset -1, 0); in __btrfs_prealloc_file_range()
10313 em->start = cur_offset; in __btrfs_prealloc_file_range()
10314 em->orig_start = cur_offset; in __btrfs_prealloc_file_range()
10329 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
10330 cur_offset + ins.offset - 1, in __btrfs_prealloc_file_range()
10336 cur_offset += ins.offset; in __btrfs_prealloc_file_range()
10344 (cur_offset > inode->i_size)) { in __btrfs_prealloc_file_range()
10345 if (cur_offset > actual_len) in __btrfs_prealloc_file_range()
10348 i_size = cur_offset; in __btrfs_prealloc_file_range()