Searched refs:zrange (Results 1 – 1 of 1) sorted by relevance
360 blk_mode_t mode, const struct blk_zone_range *zrange) in blkdev_truncate_zone_range() argument364 if (zrange->sector + zrange->nr_sectors <= zrange->sector || in blkdev_truncate_zone_range()365 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range()369 start = zrange->sector << SECTOR_SHIFT; in blkdev_truncate_zone_range()370 end = ((zrange->sector + zrange->nr_sectors) << SECTOR_SHIFT) - 1; in blkdev_truncate_zone_range()383 struct blk_zone_range zrange; in blkdev_zone_mgmt_ioctl() local396 if (copy_from_user(&zrange, argp, sizeof(struct blk_zone_range))) in blkdev_zone_mgmt_ioctl()405 ret = blkdev_truncate_zone_range(bdev, mode, &zrange); in blkdev_zone_mgmt_ioctl()422 ret = blkdev_zone_mgmt(bdev, op, zrange.sector, zrange.nr_sectors, in blkdev_zone_mgmt_ioctl()