Linux 5.19 compat: bdev_max_discard_sectors()
commit5e4aedaca7cee981ed21ac856fd27b4682bb7888
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 27 May 2022 17:51:55 +0000 (27 17:51 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 31 May 2022 19:04:17 +0000 (31 12:04 -0700)
tree23c0d38859f58856a4f763c1b4bb49ec5a8c0cb6
parent5f264996f4dc2d5279afe96698688a20c281c473
Linux 5.19 compat: bdev_max_discard_sectors()

Linux 5.19 commit torvalds/linux@70200574cc removed the
blk_queue_discard() helper function.  The preferred interface
is to now use the bdev_max_discard_sectors() function to check
for discard support.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13515
config/kernel-blk-queue.m4
config/kernel-vfs-iov_iter.m4
include/os/linux/kernel/linux/blkdev_compat.h
module/os/linux/zfs/vdev_disk.c
module/os/linux/zfs/zvol_os.c