Lines Matching refs:cur_offset
1266 u64 cur_offset; in run_delalloc_nocow() local
1297 cur_offset = start; in run_delalloc_nocow()
1300 cur_offset, 0); in run_delalloc_nocow()
1318 cur_offset = cow_start; in run_delalloc_nocow()
1342 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1392 cur_offset = cow_start; in run_delalloc_nocow()
1400 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1401 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1422 cur_offset = cow_start; in run_delalloc_nocow()
1448 cow_start = cur_offset; in run_delalloc_nocow()
1449 cur_offset = extent_end; in run_delalloc_nocow()
1450 if (cur_offset > end) in run_delalloc_nocow()
1474 em = create_io_em(inode, cur_offset, num_bytes, in run_delalloc_nocow()
1497 ret = btrfs_add_ordered_extent(inode, cur_offset, disk_bytenr, in run_delalloc_nocow()
1510 ret = btrfs_reloc_clone_csums(inode, cur_offset, in run_delalloc_nocow()
1513 extent_clear_unlock_delalloc(inode, cur_offset, in run_delalloc_nocow()
1514 cur_offset + num_bytes - 1, end, in run_delalloc_nocow()
1520 cur_offset = extent_end; in run_delalloc_nocow()
1529 if (cur_offset > end) in run_delalloc_nocow()
1534 if (cur_offset <= end && cow_start == (u64)-1) { in run_delalloc_nocow()
1535 cow_start = cur_offset; in run_delalloc_nocow()
1536 cur_offset = end; in run_delalloc_nocow()
1547 if (ret && cur_offset < end) in run_delalloc_nocow()
1548 extent_clear_unlock_delalloc(inode, cur_offset, end, end, in run_delalloc_nocow()
5003 u64 cur_offset; in btrfs_cont_expand() local
5034 cur_offset = hole_start; in btrfs_cont_expand()
5036 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, cur_offset, in btrfs_cont_expand()
5037 block_end - cur_offset, 0); in btrfs_cont_expand()
5047 hole_size = last_byte - cur_offset; in btrfs_cont_expand()
5049 err = maybe_insert_hole(root, inode, cur_offset, in btrfs_cont_expand()
5053 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in btrfs_cont_expand()
5054 cur_offset + hole_size - 1, 0); in btrfs_cont_expand()
5061 hole_em->start = cur_offset; in btrfs_cont_expand()
5063 hole_em->orig_start = cur_offset; in btrfs_cont_expand()
5080 cur_offset, in btrfs_cont_expand()
5081 cur_offset + in btrfs_cont_expand()
5089 cur_offset = last_byte; in btrfs_cont_expand()
5090 if (cur_offset >= block_end) in btrfs_cont_expand()
10231 u64 cur_offset = start; in __btrfs_prealloc_file_range() local
10270 cur_offset, ins.objectid, in __btrfs_prealloc_file_range()
10283 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
10284 cur_offset + ins.offset -1, 0); in __btrfs_prealloc_file_range()
10293 em->start = cur_offset; in __btrfs_prealloc_file_range()
10294 em->orig_start = cur_offset; in __btrfs_prealloc_file_range()
10310 btrfs_drop_extent_cache(BTRFS_I(inode), cur_offset, in __btrfs_prealloc_file_range()
10311 cur_offset + ins.offset - 1, in __btrfs_prealloc_file_range()
10317 cur_offset += ins.offset; in __btrfs_prealloc_file_range()
10325 (cur_offset > inode->i_size)) { in __btrfs_prealloc_file_range()
10326 if (cur_offset > actual_len) in __btrfs_prealloc_file_range()
10329 i_size = cur_offset; in __btrfs_prealloc_file_range()
10346 if (cur_offset < end) in __btrfs_prealloc_file_range()
10347 btrfs_free_reserved_data_space(inode, NULL, cur_offset, in __btrfs_prealloc_file_range()
10348 end - cur_offset + 1); in __btrfs_prealloc_file_range()