Lines Matching refs:cur_offset
1457 u64 cur_offset = start; in run_delalloc_nocow() local
1491 cur_offset, 0); in run_delalloc_nocow()
1516 cur_offset = cow_start; in run_delalloc_nocow()
1548 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1575 if (extent_end <= cur_offset) { in run_delalloc_nocow()
1613 cur_offset = cow_start; in run_delalloc_nocow()
1621 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1622 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1643 cur_offset = cow_start; in run_delalloc_nocow()
1671 cow_start = cur_offset; in run_delalloc_nocow()
1672 cur_offset = extent_end; in run_delalloc_nocow()
1673 if (cur_offset > end) in run_delalloc_nocow()
1699 em = create_io_em(inode, cur_offset, num_bytes, in run_delalloc_nocow()
1711 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
1716 btrfs_drop_extent_cache(inode, cur_offset, in run_delalloc_nocow()
1717 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1722 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
1741 ret = btrfs_reloc_clone_csums(inode, cur_offset, in run_delalloc_nocow()
1744 extent_clear_unlock_delalloc(inode, cur_offset, in run_delalloc_nocow()
1745 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1751 cur_offset = extent_end; in run_delalloc_nocow()
1760 if (cur_offset > end) in run_delalloc_nocow()
1765 if (cur_offset <= end && cow_start == (u64)-1) in run_delalloc_nocow()
1766 cow_start = cur_offset; in run_delalloc_nocow()
1769 cur_offset = end; in run_delalloc_nocow()
1780 if (ret && cur_offset < end) in run_delalloc_nocow()
1781 extent_clear_unlock_delalloc(inode, cur_offset, end, in run_delalloc_nocow()
4769 u64 cur_offset; in btrfs_cont_expand() local
4787 cur_offset = hole_start; in btrfs_cont_expand()
4789 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, cur_offset, in btrfs_cont_expand()
4790 block_end - cur_offset); in btrfs_cont_expand()
4798 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
4803 err = maybe_insert_hole(root, inode, cur_offset, in btrfs_cont_expand()
4809 cur_offset, hole_size); in btrfs_cont_expand()
4813 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in btrfs_cont_expand()
4814 cur_offset + hole_size - 1, 0); in btrfs_cont_expand()
4821 hole_em->start = cur_offset; in btrfs_cont_expand()
4823 hole_em->orig_start = cur_offset; in btrfs_cont_expand()
4839 cur_offset, in btrfs_cont_expand()
4840 cur_offset + in btrfs_cont_expand()
4846 cur_offset, hole_size); in btrfs_cont_expand()
4853 cur_offset = last_byte; in btrfs_cont_expand()
4854 if (cur_offset >= block_end) in btrfs_cont_expand()
9789 u64 cur_offset = start; in __btrfs_prealloc_file_range() local
9825 trans = insert_prealloc_file_extent(trans, inode, &ins, cur_offset); in __btrfs_prealloc_file_range()
9840 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
9841 cur_offset + ins.offset -1, 0); in __btrfs_prealloc_file_range()
9850 em->start = cur_offset; in __btrfs_prealloc_file_range()
9851 em->orig_start = cur_offset; in __btrfs_prealloc_file_range()
9866 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
9867 cur_offset + ins.offset - 1, in __btrfs_prealloc_file_range()
9873 cur_offset += ins.offset; in __btrfs_prealloc_file_range()
9881 (cur_offset > inode->i_size)) { in __btrfs_prealloc_file_range()
9882 if (cur_offset > actual_len) in __btrfs_prealloc_file_range()
9885 i_size = cur_offset; in __btrfs_prealloc_file_range()