]> www.infradead.org Git - users/hch/block.git/commit
sd: remove sd_is_zoned
authorChristoph Hellwig <hch@lst.de>
Sun, 9 Jun 2024 06:08:24 +0000 (08:08 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 16 Jun 2024 09:47:00 +0000 (11:47 +0200)
commit90c08542d1a8777402ce3c1d7928ae4630f292d8
tree21ec4a2082d41d89dbcc0580d2280855934714f9
parent05c0e511c5e6a304dffeab8ae7329525e7a0dba2
sd: remove sd_is_zoned

Since commit 7437bb73f087 ("block: remove support for the host aware zone
model"), only ZBC devices expose a zoned access model.  sd_is_zoned is
used to check for that and thus return false for host aware devices.

Replace the helper with the simple open coded TYPE_ZBC check to fix this.

Fixes: 7437bb73f087 ("block: remove support for the host aware zone model")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
drivers/scsi/sd.c
drivers/scsi/sd.h
drivers/scsi/sd_zbc.c