Lines Matching defs:range
536 struct btrfs_ioctl_defrag_range_args *range)
557 if (range->start + range->len > range->start) {
559 range->start + range->len - 1) >> PAGE_CACHE_SHIFT;
564 i = range->start >> PAGE_CACHE_SHIFT;
568 range->extent_thresh,
587 if (range->flags & BTRFS_DEFRAG_RANGE_COMPRESS)
668 if ((range->flags & BTRFS_DEFRAG_RANGE_START_IO))
671 if ((range->flags & BTRFS_DEFRAG_RANGE_COMPRESS)) {
1333 struct btrfs_ioctl_defrag_range_args *range;
1357 range = kzalloc(sizeof(*range), GFP_KERNEL);
1358 if (!range) {
1364 if (copy_from_user(range, argp,
1365 sizeof(*range))) {
1367 kfree(range);
1371 if ((range->flags & BTRFS_DEFRAG_RANGE_COMPRESS)) {
1372 range->flags |= BTRFS_DEFRAG_RANGE_START_IO;
1373 range->extent_thresh = (u32)-1;
1377 range->len = (u64)-1;
1379 ret = btrfs_defrag_file(file, range);
1380 kfree(range);
1512 /* determine range to clone */