Linux 5.11 compat: bdev_whole()
commit72ba4b2a4ca8c55bc8e8350126de2e9f18e75900
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 22 Dec 2020 21:02:59 +0000 (22 13:02 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Dec 2020 00:20:33 +0000 (27 16:20 -0800)
tree56288eb0e3337af212c34edd2e0704eb5acc5430
parenta970f0594e9f67363dece8e0ed066e3eb7725bb4
Linux 5.11 compat: bdev_whole()

The bd_contains member was removed from the block_device structure.
Callers needing to determine if a vdev is a whole block device should
use the new bdev_whole() wrapper.  For older kernels we provide our
own bdev_whole() wrapper which relies on bd_contains for compatibility.

Reviewed-by: Rafael Kitover <rkitover@gmail.com>
Reviewed-by: Coleman Kane <ckane@colemankane.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11387
Closes #11390
config/kernel-blkdev.m4
module/os/linux/zfs/vdev_disk.c