Lines Matching refs:cur_offset

1217 	u64 cur_offset;  in run_delalloc_nocow()  local
1266 cur_offset = start; in run_delalloc_nocow()
1269 cur_offset, 0); in run_delalloc_nocow()
1308 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1346 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1347 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1382 cow_start = cur_offset; in run_delalloc_nocow()
1383 cur_offset = extent_end; in run_delalloc_nocow()
1384 if (cur_offset > end) in run_delalloc_nocow()
1409 em->start = cur_offset; in run_delalloc_nocow()
1438 ret = btrfs_add_ordered_extent(inode, cur_offset, disk_bytenr, in run_delalloc_nocow()
1444 ret = btrfs_reloc_clone_csums(inode, cur_offset, in run_delalloc_nocow()
1453 extent_clear_unlock_delalloc(inode, cur_offset, in run_delalloc_nocow()
1454 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1460 cur_offset = extent_end; in run_delalloc_nocow()
1461 if (cur_offset > end) in run_delalloc_nocow()
1466 if (cur_offset <= end && cow_start == (u64)-1) { in run_delalloc_nocow()
1467 cow_start = cur_offset; in run_delalloc_nocow()
1468 cur_offset = end; in run_delalloc_nocow()
1483 if (ret && cur_offset < end) in run_delalloc_nocow()
1484 extent_clear_unlock_delalloc(inode, cur_offset, end, in run_delalloc_nocow()
4737 u64 cur_offset; in btrfs_cont_expand() local
4768 cur_offset = hole_start; in btrfs_cont_expand()
4770 em = btrfs_get_extent(inode, NULL, 0, cur_offset, in btrfs_cont_expand()
4771 block_end - cur_offset, 0); in btrfs_cont_expand()
4781 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
4783 err = maybe_insert_hole(root, inode, cur_offset, in btrfs_cont_expand()
4787 btrfs_drop_extent_cache(inode, cur_offset, in btrfs_cont_expand()
4788 cur_offset + hole_size - 1, 0); in btrfs_cont_expand()
4795 hole_em->start = cur_offset; in btrfs_cont_expand()
4797 hole_em->orig_start = cur_offset; in btrfs_cont_expand()
4813 btrfs_drop_extent_cache(inode, cur_offset, in btrfs_cont_expand()
4814 cur_offset + in btrfs_cont_expand()
4822 cur_offset = last_byte; in btrfs_cont_expand()
4823 if (cur_offset >= block_end) in btrfs_cont_expand()
9630 u64 cur_offset = start; in __btrfs_prealloc_file_range() local
9658 cur_offset, ins.objectid, in __btrfs_prealloc_file_range()
9671 btrfs_drop_extent_cache(inode, cur_offset, in __btrfs_prealloc_file_range()
9672 cur_offset + ins.offset -1, 0); in __btrfs_prealloc_file_range()
9681 em->start = cur_offset; in __btrfs_prealloc_file_range()
9682 em->orig_start = cur_offset; in __btrfs_prealloc_file_range()
9698 btrfs_drop_extent_cache(inode, cur_offset, in __btrfs_prealloc_file_range()
9699 cur_offset + ins.offset - 1, in __btrfs_prealloc_file_range()
9705 cur_offset += ins.offset; in __btrfs_prealloc_file_range()
9713 (cur_offset > inode->i_size)) { in __btrfs_prealloc_file_range()
9714 if (cur_offset > actual_len) in __btrfs_prealloc_file_range()
9717 i_size = cur_offset; in __btrfs_prealloc_file_range()