Lines Matching refs:cur_offset
2612 u64 cur_offset; in btrfs_replace_file_extents() local
2651 cur_offset = start; in btrfs_replace_file_extents()
2652 while (cur_offset < end) { in btrfs_replace_file_extents()
2654 cur_offset, end + 1, &drop_end, in btrfs_replace_file_extents()
2672 if (!extent_info && cur_offset < drop_end && in btrfs_replace_file_extents()
2673 cur_offset < ino_size) { in btrfs_replace_file_extents()
2675 cur_offset, drop_end); in btrfs_replace_file_extents()
2686 } else if (!extent_info && cur_offset < drop_end) { in btrfs_replace_file_extents()
2694 cur_offset, drop_end - cur_offset); in btrfs_replace_file_extents()
2720 cur_offset = drop_end; in btrfs_replace_file_extents()
2742 ret = find_first_non_hole(inode, &cur_offset, &len); in btrfs_replace_file_extents()
2786 if (!extent_info && cur_offset < ino_size && cur_offset < drop_end) { in btrfs_replace_file_extents()
2788 cur_offset, drop_end); in btrfs_replace_file_extents()
2794 } else if (!extent_info && cur_offset < drop_end) { in btrfs_replace_file_extents()
2797 cur_offset, drop_end - cur_offset); in btrfs_replace_file_extents()
3272 u64 cur_offset; in btrfs_fallocate() local
3285 cur_offset = alloc_start; in btrfs_fallocate()
3389 while (cur_offset < alloc_end) { in btrfs_fallocate()
3390 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, cur_offset, in btrfs_fallocate()
3391 alloc_end - cur_offset); in btrfs_fallocate()
3400 (cur_offset >= inode->i_size && in btrfs_fallocate()
3402 ret = add_falloc_range(&reserve_list, cur_offset, in btrfs_fallocate()
3403 last_byte - cur_offset); in btrfs_fallocate()
3409 &data_reserved, cur_offset, in btrfs_fallocate()
3410 last_byte - cur_offset); in btrfs_fallocate()
3412 cur_offset = last_byte; in btrfs_fallocate()
3423 data_reserved, cur_offset, in btrfs_fallocate()
3424 last_byte - cur_offset); in btrfs_fallocate()
3427 cur_offset = last_byte; in btrfs_fallocate()
3463 cur_offset, alloc_end - cur_offset); in btrfs_fallocate()