Lines Matching refs:cur_offset

2373 	u64 cur_offset;  in btrfs_replace_file_extents()  local
2412 cur_offset = start; in btrfs_replace_file_extents()
2416 while (cur_offset < end) { in btrfs_replace_file_extents()
2417 drop_args.start = cur_offset; in btrfs_replace_file_extents()
2441 if (!extent_info && cur_offset < drop_args.drop_end && in btrfs_replace_file_extents()
2442 cur_offset < ino_size) { in btrfs_replace_file_extents()
2443 ret = fill_holes(trans, inode, path, cur_offset, in btrfs_replace_file_extents()
2455 } else if (!extent_info && cur_offset < drop_args.drop_end) { in btrfs_replace_file_extents()
2463 cur_offset, in btrfs_replace_file_extents()
2464 drop_args.drop_end - cur_offset); in btrfs_replace_file_extents()
2531 cur_offset = drop_args.drop_end; in btrfs_replace_file_extents()
2532 len = end - cur_offset; in btrfs_replace_file_extents()
2534 ret = find_first_non_hole(inode, &cur_offset, &len); in btrfs_replace_file_extents()
2575 if (!extent_info && cur_offset < ino_size && in btrfs_replace_file_extents()
2576 cur_offset < drop_args.drop_end) { in btrfs_replace_file_extents()
2577 ret = fill_holes(trans, inode, path, cur_offset, in btrfs_replace_file_extents()
2584 } else if (!extent_info && cur_offset < drop_args.drop_end) { in btrfs_replace_file_extents()
2586 ret = btrfs_inode_clear_file_extent_range(inode, cur_offset, in btrfs_replace_file_extents()
2587 drop_args.drop_end - cur_offset); in btrfs_replace_file_extents()
3062 u64 cur_offset; in btrfs_fallocate() local
3082 cur_offset = alloc_start; in btrfs_fallocate()
3153 while (cur_offset < alloc_end) { in btrfs_fallocate()
3154 em = btrfs_get_extent(BTRFS_I(inode), NULL, cur_offset, in btrfs_fallocate()
3155 alloc_end - cur_offset); in btrfs_fallocate()
3164 (cur_offset >= inode->i_size && in btrfs_fallocate()
3166 const u64 range_len = last_byte - cur_offset; in btrfs_fallocate()
3168 ret = add_falloc_range(&reserve_list, cur_offset, range_len); in btrfs_fallocate()
3174 &data_reserved, cur_offset, range_len); in btrfs_fallocate()
3183 cur_offset = last_byte; in btrfs_fallocate()
3378 u64 cur_offset = round_down(start, inode->root->fs_info->sectorsize); in btrfs_find_delalloc_in_range() local
3383 while (cur_offset <= end) { in btrfs_find_delalloc_in_range()
3388 delalloc = find_delalloc_subrange(inode, cur_offset, end, in btrfs_find_delalloc_in_range()
3409 cur_offset = delalloc_end + 1; in btrfs_find_delalloc_in_range()