Lines Matching refs:cur_offset
2292 u64 cur_offset; in btrfs_punch_hole() local
2460 cur_offset = lockstart; in btrfs_punch_hole()
2461 len = lockend - cur_offset; in btrfs_punch_hole()
2462 while (cur_offset < lockend) { in btrfs_punch_hole()
2464 cur_offset, lockend + 1, in btrfs_punch_hole()
2471 if (cur_offset < ino_size) { in btrfs_punch_hole()
2472 ret = fill_holes(trans, inode, path, cur_offset, in btrfs_punch_hole()
2480 cur_offset = drop_end; in btrfs_punch_hole()
2503 ret = find_first_non_hole(inode, &cur_offset, &len); in btrfs_punch_hole()
2536 if (cur_offset < ino_size && cur_offset < drop_end) { in btrfs_punch_hole()
2537 ret = fill_holes(trans, inode, path, cur_offset, drop_end); in btrfs_punch_hole()
2633 u64 cur_offset; in btrfs_fallocate() local
2735 cur_offset = alloc_start; in btrfs_fallocate()
2737 em = btrfs_get_extent(inode, NULL, 0, cur_offset, in btrfs_fallocate()
2738 alloc_end - cur_offset, 0); in btrfs_fallocate()
2750 (cur_offset >= inode->i_size && in btrfs_fallocate()
2752 ret = add_falloc_range(&reserve_list, cur_offset, in btrfs_fallocate()
2753 last_byte - cur_offset); in btrfs_fallocate()
2758 ret = btrfs_qgroup_reserve_data(inode, cur_offset, in btrfs_fallocate()
2759 last_byte - cur_offset); in btrfs_fallocate()
2764 cur_offset = last_byte; in btrfs_fallocate()
2765 if (cur_offset >= alloc_end) in btrfs_fallocate()