ata: libata: Remove ATA_DFLAG_ZAC device flag
authorDamien Le Moal <dlemoal@kernel.org>
Fri, 27 Jun 2025 00:42:33 +0000 (09:42 +0900)
committerDamien Le Moal <dlemoal@kernel.org>
Mon, 30 Jun 2025 01:25:45 +0000 (10:25 +0900)
commita0f26fcc383965e0522b81269062a9278bc802fe
tree0479b535388efbc949914baf9400b21a4e24ee7f
parentd0b3b7b22dfa1f4b515fd3a295b3fd958f9e81af
ata: libata: Remove ATA_DFLAG_ZAC device flag

The ATA device flag ATA_DFLAG_ZAC is used to indicate if a devie is a
host managed or host aware zoned device. However, this flag is not used
in the hot path and only used during device scanning/revalidation and
for inquiry and sense SCSI command translation.

Save one bit from struct ata_device flags field by replacing this flag
with the internal helper function ata_dev_is_zac(). This function
returns true if the device class is ATA_DEV_ZAC (host managed ZAC device
case) or if its identify data reports it supports the zoned command set
(host aware ZAC device case).

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
drivers/ata/libata-core.c
drivers/ata/libata-scsi.c
drivers/ata/libata.h
include/linux/libata.h