Lines Matching refs:cur_offset
2310 u64 cur_offset; in btrfs_punch_hole() local
2478 cur_offset = lockstart; in btrfs_punch_hole()
2479 len = lockend - cur_offset; in btrfs_punch_hole()
2480 while (cur_offset < lockend) { in btrfs_punch_hole()
2482 cur_offset, lockend + 1, in btrfs_punch_hole()
2489 if (cur_offset < ino_size) { in btrfs_punch_hole()
2490 ret = fill_holes(trans, inode, path, cur_offset, in btrfs_punch_hole()
2498 cur_offset = drop_end; in btrfs_punch_hole()
2521 ret = find_first_non_hole(inode, &cur_offset, &len); in btrfs_punch_hole()
2554 if (cur_offset < ino_size && cur_offset < drop_end) { in btrfs_punch_hole()
2555 ret = fill_holes(trans, inode, path, cur_offset, drop_end); in btrfs_punch_hole()
2651 u64 cur_offset; in btrfs_fallocate() local
2753 cur_offset = alloc_start; in btrfs_fallocate()
2755 em = btrfs_get_extent(inode, NULL, 0, cur_offset, in btrfs_fallocate()
2756 alloc_end - cur_offset, 0); in btrfs_fallocate()
2768 (cur_offset >= inode->i_size && in btrfs_fallocate()
2770 ret = add_falloc_range(&reserve_list, cur_offset, in btrfs_fallocate()
2771 last_byte - cur_offset); in btrfs_fallocate()
2776 ret = btrfs_qgroup_reserve_data(inode, cur_offset, in btrfs_fallocate()
2777 last_byte - cur_offset); in btrfs_fallocate()
2782 cur_offset = last_byte; in btrfs_fallocate()
2783 if (cur_offset >= alloc_end) in btrfs_fallocate()