Lines Matching refs:cur_offset
2655 u64 cur_offset; in btrfs_replace_file_extents() local
2693 cur_offset = start; in btrfs_replace_file_extents()
2697 while (cur_offset < end) { in btrfs_replace_file_extents()
2698 drop_args.start = cur_offset; in btrfs_replace_file_extents()
2722 if (!extent_info && cur_offset < drop_args.drop_end && in btrfs_replace_file_extents()
2723 cur_offset < ino_size) { in btrfs_replace_file_extents()
2724 ret = fill_holes(trans, inode, path, cur_offset, in btrfs_replace_file_extents()
2736 } else if (!extent_info && cur_offset < drop_args.drop_end) { in btrfs_replace_file_extents()
2744 cur_offset, in btrfs_replace_file_extents()
2745 drop_args.drop_end - cur_offset); in btrfs_replace_file_extents()
2793 cur_offset = drop_args.drop_end; in btrfs_replace_file_extents()
2794 len = end - cur_offset; in btrfs_replace_file_extents()
2796 ret = find_first_non_hole(inode, &cur_offset, &len); in btrfs_replace_file_extents()
2837 if (!extent_info && cur_offset < ino_size && in btrfs_replace_file_extents()
2838 cur_offset < drop_args.drop_end) { in btrfs_replace_file_extents()
2839 ret = fill_holes(trans, inode, path, cur_offset, in btrfs_replace_file_extents()
2846 } else if (!extent_info && cur_offset < drop_args.drop_end) { in btrfs_replace_file_extents()
2848 ret = btrfs_inode_clear_file_extent_range(inode, cur_offset, in btrfs_replace_file_extents()
2849 drop_args.drop_end - cur_offset); in btrfs_replace_file_extents()
3329 u64 cur_offset; in btrfs_fallocate() local
3346 cur_offset = alloc_start; in btrfs_fallocate()
3450 while (cur_offset < alloc_end) { in btrfs_fallocate()
3451 em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, cur_offset, in btrfs_fallocate()
3452 alloc_end - cur_offset); in btrfs_fallocate()
3461 (cur_offset >= inode->i_size && in btrfs_fallocate()
3463 ret = add_falloc_range(&reserve_list, cur_offset, in btrfs_fallocate()
3464 last_byte - cur_offset); in btrfs_fallocate()
3470 &data_reserved, cur_offset, in btrfs_fallocate()
3471 last_byte - cur_offset); in btrfs_fallocate()
3473 cur_offset = last_byte; in btrfs_fallocate()
3484 data_reserved, cur_offset, in btrfs_fallocate()
3485 last_byte - cur_offset); in btrfs_fallocate()
3488 cur_offset = last_byte; in btrfs_fallocate()
3524 cur_offset, alloc_end - cur_offset); in btrfs_fallocate()