Lines Matching refs:cur_offset

1327 	u64 cur_offset = start;  in run_delalloc_nocow()  local
1361 cur_offset, 0); in run_delalloc_nocow()
1386 cur_offset = cow_start; in run_delalloc_nocow()
1418 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1483 cur_offset = cow_start; in run_delalloc_nocow()
1491 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1492 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1513 cur_offset = cow_start; in run_delalloc_nocow()
1541 cow_start = cur_offset; in run_delalloc_nocow()
1542 cur_offset = extent_end; in run_delalloc_nocow()
1543 if (cur_offset > end) in run_delalloc_nocow()
1573 em = create_io_em(inode, cur_offset, num_bytes, in run_delalloc_nocow()
1588 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
1594 cur_offset, in run_delalloc_nocow()
1595 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1600 ret = btrfs_add_ordered_extent(inode, cur_offset, in run_delalloc_nocow()
1619 ret = btrfs_reloc_clone_csums(inode, cur_offset, in run_delalloc_nocow()
1622 extent_clear_unlock_delalloc(inode, cur_offset, in run_delalloc_nocow()
1623 cur_offset + num_bytes - 1, in run_delalloc_nocow()
1629 cur_offset = extent_end; in run_delalloc_nocow()
1638 if (cur_offset > end) in run_delalloc_nocow()
1643 if (cur_offset <= end && cow_start == (u64)-1) in run_delalloc_nocow()
1644 cow_start = cur_offset; in run_delalloc_nocow()
1647 cur_offset = end; in run_delalloc_nocow()
1658 if (ret && cur_offset < end) in run_delalloc_nocow()
1659 extent_clear_unlock_delalloc(inode, cur_offset, end, in run_delalloc_nocow()
5103 u64 cur_offset; in btrfs_cont_expand() local
5121 cur_offset = hole_start; in btrfs_cont_expand()
5123 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, cur_offset, in btrfs_cont_expand()
5124 block_end - cur_offset, 0); in btrfs_cont_expand()
5134 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
5136 err = maybe_insert_hole(root, inode, cur_offset, in btrfs_cont_expand()
5140 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in btrfs_cont_expand()
5141 cur_offset + hole_size - 1, 0); in btrfs_cont_expand()
5148 hole_em->start = cur_offset; in btrfs_cont_expand()
5150 hole_em->orig_start = cur_offset; in btrfs_cont_expand()
5167 cur_offset, in btrfs_cont_expand()
5168 cur_offset + in btrfs_cont_expand()
5176 cur_offset = last_byte; in btrfs_cont_expand()
5177 if (cur_offset >= block_end) in btrfs_cont_expand()
10384 u64 cur_offset = start; in __btrfs_prealloc_file_range() local
10423 cur_offset, ins.objectid, in __btrfs_prealloc_file_range()
10436 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
10437 cur_offset + ins.offset -1, 0); in __btrfs_prealloc_file_range()
10446 em->start = cur_offset; in __btrfs_prealloc_file_range()
10447 em->orig_start = cur_offset; in __btrfs_prealloc_file_range()
10463 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
10464 cur_offset + ins.offset - 1, in __btrfs_prealloc_file_range()
10470 cur_offset += ins.offset; in __btrfs_prealloc_file_range()
10478 (cur_offset > inode->i_size)) { in __btrfs_prealloc_file_range()
10479 if (cur_offset > actual_len) in __btrfs_prealloc_file_range()
10482 i_size = cur_offset; in __btrfs_prealloc_file_range()
10499 if (cur_offset < end) in __btrfs_prealloc_file_range()
10500 btrfs_free_reserved_data_space(inode, NULL, cur_offset, in __btrfs_prealloc_file_range()
10501 end - cur_offset + 1); in __btrfs_prealloc_file_range()