Lines Matching refs:cur_offset
1227 u64 cur_offset; in run_delalloc_nocow() local
1276 cur_offset = start; in run_delalloc_nocow()
1279 cur_offset, 0); in run_delalloc_nocow()
1318 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1356 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1357 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1392 cow_start = cur_offset; in run_delalloc_nocow()
1393 cur_offset = extent_end; in run_delalloc_nocow()
1394 if (cur_offset > end) in run_delalloc_nocow()
1419 em->start = cur_offset; in run_delalloc_nocow()
1448 ret = btrfs_add_ordered_extent(inode, cur_offset, disk_bytenr, in run_delalloc_nocow()
1454 ret = btrfs_reloc_clone_csums(inode, cur_offset, in run_delalloc_nocow()
1463 extent_clear_unlock_delalloc(inode, cur_offset, in run_delalloc_nocow()
1464 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1470 cur_offset = extent_end; in run_delalloc_nocow()
1471 if (cur_offset > end) in run_delalloc_nocow()
1476 if (cur_offset <= end && cow_start == (u64)-1) { in run_delalloc_nocow()
1477 cow_start = cur_offset; in run_delalloc_nocow()
1478 cur_offset = end; in run_delalloc_nocow()
1493 if (ret && cur_offset < end) in run_delalloc_nocow()
1494 extent_clear_unlock_delalloc(inode, cur_offset, end, in run_delalloc_nocow()
4779 u64 cur_offset; in btrfs_cont_expand() local
4810 cur_offset = hole_start; in btrfs_cont_expand()
4812 em = btrfs_get_extent(inode, NULL, 0, cur_offset, in btrfs_cont_expand()
4813 block_end - cur_offset, 0); in btrfs_cont_expand()
4823 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
4825 err = maybe_insert_hole(root, inode, cur_offset, in btrfs_cont_expand()
4829 btrfs_drop_extent_cache(inode, cur_offset, in btrfs_cont_expand()
4830 cur_offset + hole_size - 1, 0); in btrfs_cont_expand()
4837 hole_em->start = cur_offset; in btrfs_cont_expand()
4839 hole_em->orig_start = cur_offset; in btrfs_cont_expand()
4855 btrfs_drop_extent_cache(inode, cur_offset, in btrfs_cont_expand()
4856 cur_offset + in btrfs_cont_expand()
4864 cur_offset = last_byte; in btrfs_cont_expand()
4865 if (cur_offset >= block_end) in btrfs_cont_expand()
9771 u64 cur_offset = start; in __btrfs_prealloc_file_range() local
9808 cur_offset, ins.objectid, in __btrfs_prealloc_file_range()
9821 btrfs_drop_extent_cache(inode, cur_offset, in __btrfs_prealloc_file_range()
9822 cur_offset + ins.offset -1, 0); in __btrfs_prealloc_file_range()
9831 em->start = cur_offset; in __btrfs_prealloc_file_range()
9832 em->orig_start = cur_offset; in __btrfs_prealloc_file_range()
9848 btrfs_drop_extent_cache(inode, cur_offset, in __btrfs_prealloc_file_range()
9849 cur_offset + ins.offset - 1, in __btrfs_prealloc_file_range()
9855 cur_offset += ins.offset; in __btrfs_prealloc_file_range()
9863 (cur_offset > inode->i_size)) { in __btrfs_prealloc_file_range()
9864 if (cur_offset > actual_len) in __btrfs_prealloc_file_range()
9867 i_size = cur_offset; in __btrfs_prealloc_file_range()