Lines Matching refs:cur_offset
1342 u64 cur_offset = start; in run_delalloc_nocow() local
1376 cur_offset, 0); in run_delalloc_nocow()
1401 cur_offset = cow_start; in run_delalloc_nocow()
1433 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1460 if (extent_end <= cur_offset) { in run_delalloc_nocow()
1498 cur_offset = cow_start; in run_delalloc_nocow()
1506 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1507 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1528 cur_offset = cow_start; in run_delalloc_nocow()
1556 cow_start = cur_offset; in run_delalloc_nocow()
1557 cur_offset = extent_end; in run_delalloc_nocow()
1558 if (cur_offset > end) in run_delalloc_nocow()
1588 em = create_io_em(inode, cur_offset, num_bytes, in run_delalloc_nocow()
1603 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
1609 cur_offset, in run_delalloc_nocow()
1610 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1615 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
1634 ret = btrfs_reloc_clone_csums(inode, cur_offset, in run_delalloc_nocow()
1637 extent_clear_unlock_delalloc(inode, cur_offset, in run_delalloc_nocow()
1638 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1644 cur_offset = extent_end; in run_delalloc_nocow()
1653 if (cur_offset > end) in run_delalloc_nocow()
1658 if (cur_offset <= end && cow_start == (u64)-1) in run_delalloc_nocow()
1659 cow_start = cur_offset; in run_delalloc_nocow()
1662 cur_offset = end; in run_delalloc_nocow()
1673 if (ret && cur_offset < end) in run_delalloc_nocow()
1674 extent_clear_unlock_delalloc(inode, cur_offset, end, in run_delalloc_nocow()
5135 u64 cur_offset; in btrfs_cont_expand() local
5153 cur_offset = hole_start; in btrfs_cont_expand()
5155 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, cur_offset, in btrfs_cont_expand()
5156 block_end - cur_offset, 0); in btrfs_cont_expand()
5166 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
5168 err = maybe_insert_hole(root, inode, cur_offset, in btrfs_cont_expand()
5172 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in btrfs_cont_expand()
5173 cur_offset + hole_size - 1, 0); in btrfs_cont_expand()
5180 hole_em->start = cur_offset; in btrfs_cont_expand()
5182 hole_em->orig_start = cur_offset; in btrfs_cont_expand()
5199 cur_offset, in btrfs_cont_expand()
5200 cur_offset + in btrfs_cont_expand()
5208 cur_offset = last_byte; in btrfs_cont_expand()
5209 if (cur_offset >= block_end) in btrfs_cont_expand()
10395 u64 cur_offset = start; in __btrfs_prealloc_file_range() local
10434 cur_offset, ins.objectid, in __btrfs_prealloc_file_range()
10447 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
10448 cur_offset + ins.offset -1, 0); in __btrfs_prealloc_file_range()
10457 em->start = cur_offset; in __btrfs_prealloc_file_range()
10458 em->orig_start = cur_offset; in __btrfs_prealloc_file_range()
10474 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
10475 cur_offset + ins.offset - 1, in __btrfs_prealloc_file_range()
10481 cur_offset += ins.offset; in __btrfs_prealloc_file_range()
10489 (cur_offset > inode->i_size)) { in __btrfs_prealloc_file_range()
10490 if (cur_offset > actual_len) in __btrfs_prealloc_file_range()
10493 i_size = cur_offset; in __btrfs_prealloc_file_range()
10510 if (cur_offset < end) in __btrfs_prealloc_file_range()
10511 btrfs_free_reserved_data_space(inode, NULL, cur_offset, in __btrfs_prealloc_file_range()
10512 end - cur_offset + 1); in __btrfs_prealloc_file_range()