]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm: cleanup device_area_is_invalid()
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 25 May 2021 21:24:55 +0000 (06:24 +0900)
committerMike Snitzer <snitzer@redhat.com>
Wed, 2 Jun 2021 18:05:02 +0000 (14:05 -0400)
commit02214606d39963349bab9380b4e03b165e556de9
treebad91d101dc608283ebcbf9dd317746485ca6184
parent88afb505e0547b54c20d391003a5d94d0085b77a
dm: cleanup device_area_is_invalid()

In device_area_is_invalid(), use bdev_is_zoned() instead of open
coding the test on the zoned model returned by bdev_zoned_model().

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-table.c