Searched refs:zrange (Results 1 – 1 of 1) sorted by relevance
/kernel/linux/linux-5.10/block/ |
D | blk-zoned.c | 319 const struct blk_zone_range *zrange) in blkdev_truncate_zone_range() argument 323 if (zrange->sector + zrange->nr_sectors <= zrange->sector || in blkdev_truncate_zone_range() 324 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range() 328 start = zrange->sector << SECTOR_SHIFT; in blkdev_truncate_zone_range() 329 end = ((zrange->sector + zrange->nr_sectors) << SECTOR_SHIFT) - 1; in blkdev_truncate_zone_range() 343 struct blk_zone_range zrange; in blkdev_zone_mgmt_ioctl() local 360 if (copy_from_user(&zrange, argp, sizeof(struct blk_zone_range))) in blkdev_zone_mgmt_ioctl() 368 ret = blkdev_truncate_zone_range(bdev, mode, &zrange); in blkdev_zone_mgmt_ioctl() 385 ret = blkdev_zone_mgmt(bdev, op, zrange.sector, zrange.nr_sectors, in blkdev_zone_mgmt_ioctl() 396 ret = blkdev_truncate_zone_range(bdev, mode, &zrange); in blkdev_zone_mgmt_ioctl()
|