Lines Matching refs:cur_offset
1433 u64 cur_offset = start; in run_delalloc_nocow() local
1467 cur_offset, 0); in run_delalloc_nocow()
1492 cur_offset = cow_start; in run_delalloc_nocow()
1524 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1551 if (extent_end <= cur_offset) { in run_delalloc_nocow()
1589 cur_offset = cow_start; in run_delalloc_nocow()
1597 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1598 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1619 cur_offset = cow_start; in run_delalloc_nocow()
1647 cow_start = cur_offset; in run_delalloc_nocow()
1648 cur_offset = extent_end; in run_delalloc_nocow()
1649 if (cur_offset > end) in run_delalloc_nocow()
1675 em = create_io_em(inode, cur_offset, num_bytes, in run_delalloc_nocow()
1687 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
1693 cur_offset, in run_delalloc_nocow()
1694 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1699 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
1718 ret = btrfs_reloc_clone_csums(inode, cur_offset, in run_delalloc_nocow()
1721 extent_clear_unlock_delalloc(inode, cur_offset, in run_delalloc_nocow()
1722 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1728 cur_offset = extent_end; in run_delalloc_nocow()
1737 if (cur_offset > end) in run_delalloc_nocow()
1742 if (cur_offset <= end && cow_start == (u64)-1) in run_delalloc_nocow()
1743 cow_start = cur_offset; in run_delalloc_nocow()
1746 cur_offset = end; in run_delalloc_nocow()
1757 if (ret && cur_offset < end) in run_delalloc_nocow()
1758 extent_clear_unlock_delalloc(inode, cur_offset, end, in run_delalloc_nocow()
5341 u64 cur_offset; in btrfs_cont_expand() local
5359 cur_offset = hole_start; in btrfs_cont_expand()
5361 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, cur_offset, in btrfs_cont_expand()
5362 block_end - cur_offset, 0); in btrfs_cont_expand()
5372 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
5374 err = maybe_insert_hole(root, inode, cur_offset, in btrfs_cont_expand()
5378 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in btrfs_cont_expand()
5379 cur_offset + hole_size - 1, 0); in btrfs_cont_expand()
5386 hole_em->start = cur_offset; in btrfs_cont_expand()
5388 hole_em->orig_start = cur_offset; in btrfs_cont_expand()
5405 cur_offset, in btrfs_cont_expand()
5406 cur_offset + in btrfs_cont_expand()
5414 cur_offset = last_byte; in btrfs_cont_expand()
5415 if (cur_offset >= block_end) in btrfs_cont_expand()
10516 u64 cur_offset = start; in __btrfs_prealloc_file_range() local
10565 cur_offset, ins.objectid, in __btrfs_prealloc_file_range()
10578 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
10579 cur_offset + ins.offset -1, 0); in __btrfs_prealloc_file_range()
10588 em->start = cur_offset; in __btrfs_prealloc_file_range()
10589 em->orig_start = cur_offset; in __btrfs_prealloc_file_range()
10605 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
10606 cur_offset + ins.offset - 1, in __btrfs_prealloc_file_range()
10612 cur_offset += ins.offset; in __btrfs_prealloc_file_range()
10620 (cur_offset > inode->i_size)) { in __btrfs_prealloc_file_range()
10621 if (cur_offset > actual_len) in __btrfs_prealloc_file_range()
10624 i_size = cur_offset; in __btrfs_prealloc_file_range()