On 11/30/2016 01:22 AM, Damien Le Moal wrote: > Both blkdev_report_zones and blkdev_reset_zones can operate on a partition of > a zoned block device. However, the first and last zones reported for a > partition make sense only if the partition start sector and size are aligned > on the device zone size. The same applies for zone reset. Resetting the first > or the last zone of a partition straddling zones may impact neighboring > partitions. Finally, if a partition start sector is not at the beginning of a > sequential zone, it will be impossible to write to the first sectors of the > partition on a host-managed device. > Avoid all these problems and incoherencies by ignoring partitions that are not > zone aligned. Let's try and keep the ZONED ifdefs to a minimum, I absolutely hate having those sprinkled throughout the code. Less of an issue in the headers. bdev_is_zoned() is safe to call without the ifdef, and let's kill it around the part_zone_aligned() function too. There's no need for either one of the ifdefs below, as far as I can tell. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-block" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html