Searched refs:zrange (Results 1 – 1 of 1) sorted by relevance
306 blk_mode_t mode, const struct blk_zone_range *zrange) in blkdev_truncate_zone_range() argument310 if (zrange->sector + zrange->nr_sectors <= zrange->sector || in blkdev_truncate_zone_range()311 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range()315 start = zrange->sector << SECTOR_SHIFT; in blkdev_truncate_zone_range()316 end = ((zrange->sector + zrange->nr_sectors) << SECTOR_SHIFT) - 1; in blkdev_truncate_zone_range()329 struct blk_zone_range zrange; in blkdev_zone_mgmt_ioctl() local342 if (copy_from_user(&zrange, argp, sizeof(struct blk_zone_range))) in blkdev_zone_mgmt_ioctl()351 ret = blkdev_truncate_zone_range(bdev, mode, &zrange); in blkdev_zone_mgmt_ioctl()368 ret = blkdev_zone_mgmt(bdev, op, zrange.sector, zrange.nr_sectors); in blkdev_zone_mgmt_ioctl()