Lines Matching defs:cur_offset

972 	u64 cur_offset;
996 cur_offset = lockstart;
997 while (cur_offset < lockend) {
998 u64 num_bytes = lockend - cur_offset + 1;
1000 ret = can_nocow_extent(inode, cur_offset, &num_bytes, NULL, nowait);
1003 * If cur_offset == lockstart it means we haven't found
1007 if (cur_offset == lockstart)
1011 cur_offset += num_bytes;
1017 * cur_offset > lockstart means there's at least a partial range we can
1020 if (cur_offset > lockstart) {
1021 *write_bytes = min_t(size_t, *write_bytes, cur_offset - pos);
2403 u64 cur_offset;
2438 cur_offset = start;
2442 while (cur_offset < end) {
2443 drop_args.start = cur_offset;
2467 if (!extent_info && cur_offset < drop_args.drop_end &&
2468 cur_offset < ino_size) {
2469 ret = fill_holes(trans, inode, path, cur_offset,
2481 } else if (!extent_info && cur_offset < drop_args.drop_end) {
2489 cur_offset,
2490 drop_args.drop_end - cur_offset);
2557 cur_offset = drop_args.drop_end;
2558 len = end - cur_offset;
2560 ret = find_first_non_hole(inode, &cur_offset, &len);
2599 * cur_offset == drop_end).
2601 if (!extent_info && cur_offset < ino_size &&
2602 cur_offset < drop_args.drop_end) {
2603 ret = fill_holes(trans, inode, path, cur_offset,
2610 } else if (!extent_info && cur_offset < drop_args.drop_end) {
2612 ret = btrfs_inode_clear_file_extent_range(inode, cur_offset,
2613 drop_args.drop_end - cur_offset);
3097 u64 cur_offset;
3120 cur_offset = alloc_start;
3192 while (cur_offset < alloc_end) {
3193 em = btrfs_get_extent(BTRFS_I(inode), NULL, cur_offset,
3194 alloc_end - cur_offset);
3203 (cur_offset >= inode->i_size &&
3205 const u64 range_len = last_byte - cur_offset;
3207 ret = add_falloc_range(&reserve_list, cur_offset, range_len);
3213 &data_reserved, cur_offset, range_len);
3222 cur_offset = last_byte;
3417 u64 cur_offset = round_down(start, inode->root->fs_info->sectorsize);
3422 while (cur_offset <= end) {
3427 delalloc = find_delalloc_subrange(inode, cur_offset, end,
3448 cur_offset = delalloc_end + 1;