Lines Matching refs:cur_offset
1458 u64 cur_offset = start; in run_delalloc_nocow() local
1492 cur_offset, 0); in run_delalloc_nocow()
1517 cur_offset = cow_start; in run_delalloc_nocow()
1549 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1576 if (extent_end <= cur_offset) { in run_delalloc_nocow()
1614 cur_offset = cow_start; in run_delalloc_nocow()
1622 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1623 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1644 cur_offset = cow_start; in run_delalloc_nocow()
1672 cow_start = cur_offset; in run_delalloc_nocow()
1673 cur_offset = extent_end; in run_delalloc_nocow()
1674 if (cur_offset > end) in run_delalloc_nocow()
1700 em = create_io_em(inode, cur_offset, num_bytes, in run_delalloc_nocow()
1712 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
1717 btrfs_drop_extent_cache(inode, cur_offset, in run_delalloc_nocow()
1718 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1723 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
1742 ret = btrfs_reloc_clone_csums(inode, cur_offset, in run_delalloc_nocow()
1745 extent_clear_unlock_delalloc(inode, cur_offset, in run_delalloc_nocow()
1746 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1752 cur_offset = extent_end; in run_delalloc_nocow()
1761 if (cur_offset > end) in run_delalloc_nocow()
1766 if (cur_offset <= end && cow_start == (u64)-1) in run_delalloc_nocow()
1767 cow_start = cur_offset; in run_delalloc_nocow()
1770 cur_offset = end; in run_delalloc_nocow()
1781 if (ret && cur_offset < end) in run_delalloc_nocow()
1782 extent_clear_unlock_delalloc(inode, cur_offset, end, in run_delalloc_nocow()
4750 u64 cur_offset; in btrfs_cont_expand() local
4768 cur_offset = hole_start; in btrfs_cont_expand()
4770 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, cur_offset, in btrfs_cont_expand()
4771 block_end - cur_offset); in btrfs_cont_expand()
4779 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
4784 err = maybe_insert_hole(root, inode, cur_offset, in btrfs_cont_expand()
4790 cur_offset, hole_size); in btrfs_cont_expand()
4794 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in btrfs_cont_expand()
4795 cur_offset + hole_size - 1, 0); in btrfs_cont_expand()
4802 hole_em->start = cur_offset; in btrfs_cont_expand()
4804 hole_em->orig_start = cur_offset; in btrfs_cont_expand()
4820 cur_offset, in btrfs_cont_expand()
4821 cur_offset + in btrfs_cont_expand()
4827 cur_offset, hole_size); in btrfs_cont_expand()
4834 cur_offset = last_byte; in btrfs_cont_expand()
4835 if (cur_offset >= block_end) in btrfs_cont_expand()
9699 u64 cur_offset = start; in __btrfs_prealloc_file_range() local
9735 trans = insert_prealloc_file_extent(trans, inode, &ins, cur_offset); in __btrfs_prealloc_file_range()
9750 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
9751 cur_offset + ins.offset -1, 0); in __btrfs_prealloc_file_range()
9760 em->start = cur_offset; in __btrfs_prealloc_file_range()
9761 em->orig_start = cur_offset; in __btrfs_prealloc_file_range()
9776 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
9777 cur_offset + ins.offset - 1, in __btrfs_prealloc_file_range()
9783 cur_offset += ins.offset; in __btrfs_prealloc_file_range()
9791 (cur_offset > inode->i_size)) { in __btrfs_prealloc_file_range()
9792 if (cur_offset > actual_len) in __btrfs_prealloc_file_range()
9795 i_size = cur_offset; in __btrfs_prealloc_file_range()