Lines Matching refs:cur_offset
1246 u64 cur_offset; in run_delalloc_nocow() local
1295 cur_offset = start; in run_delalloc_nocow()
1298 cur_offset, 0); in run_delalloc_nocow()
1316 cur_offset = cow_start; in run_delalloc_nocow()
1340 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1383 cur_offset = cow_start; in run_delalloc_nocow()
1391 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1392 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1415 cur_offset = cow_start; in run_delalloc_nocow()
1439 cow_start = cur_offset; in run_delalloc_nocow()
1440 cur_offset = extent_end; in run_delalloc_nocow()
1441 if (cur_offset > end) in run_delalloc_nocow()
1466 em->start = cur_offset; in run_delalloc_nocow()
1495 ret = btrfs_add_ordered_extent(inode, cur_offset, disk_bytenr, in run_delalloc_nocow()
1501 ret = btrfs_reloc_clone_csums(inode, cur_offset, in run_delalloc_nocow()
1510 extent_clear_unlock_delalloc(inode, cur_offset, in run_delalloc_nocow()
1511 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1517 cur_offset = extent_end; in run_delalloc_nocow()
1518 if (cur_offset > end) in run_delalloc_nocow()
1523 if (cur_offset <= end && cow_start == (u64)-1) { in run_delalloc_nocow()
1524 cow_start = cur_offset; in run_delalloc_nocow()
1525 cur_offset = end; in run_delalloc_nocow()
1540 if (ret && cur_offset < end) in run_delalloc_nocow()
1541 extent_clear_unlock_delalloc(inode, cur_offset, end, in run_delalloc_nocow()
4845 u64 cur_offset; in btrfs_cont_expand() local
4876 cur_offset = hole_start; in btrfs_cont_expand()
4878 em = btrfs_get_extent(inode, NULL, 0, cur_offset, in btrfs_cont_expand()
4879 block_end - cur_offset, 0); in btrfs_cont_expand()
4889 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
4891 err = maybe_insert_hole(root, inode, cur_offset, in btrfs_cont_expand()
4895 btrfs_drop_extent_cache(inode, cur_offset, in btrfs_cont_expand()
4896 cur_offset + hole_size - 1, 0); in btrfs_cont_expand()
4903 hole_em->start = cur_offset; in btrfs_cont_expand()
4905 hole_em->orig_start = cur_offset; in btrfs_cont_expand()
4921 btrfs_drop_extent_cache(inode, cur_offset, in btrfs_cont_expand()
4922 cur_offset + in btrfs_cont_expand()
4930 cur_offset = last_byte; in btrfs_cont_expand()
4931 if (cur_offset >= block_end) in btrfs_cont_expand()
9879 u64 cur_offset = start; in __btrfs_prealloc_file_range() local
9916 cur_offset, ins.objectid, in __btrfs_prealloc_file_range()
9929 btrfs_drop_extent_cache(inode, cur_offset, in __btrfs_prealloc_file_range()
9930 cur_offset + ins.offset -1, 0); in __btrfs_prealloc_file_range()
9939 em->start = cur_offset; in __btrfs_prealloc_file_range()
9940 em->orig_start = cur_offset; in __btrfs_prealloc_file_range()
9956 btrfs_drop_extent_cache(inode, cur_offset, in __btrfs_prealloc_file_range()
9957 cur_offset + ins.offset - 1, in __btrfs_prealloc_file_range()
9963 cur_offset += ins.offset; in __btrfs_prealloc_file_range()
9971 (cur_offset > inode->i_size)) { in __btrfs_prealloc_file_range()
9972 if (cur_offset > actual_len) in __btrfs_prealloc_file_range()
9975 i_size = cur_offset; in __btrfs_prealloc_file_range()