Linux 5.19 compat: bdev_max_secure_erase_sectors()
commite2c31f2bc7d190fbd8fc5c13bac23daffc5d7b56
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 27 May 2022 18:20:04 +0000 (27 18:20 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 31 May 2022 19:04:22 +0000 (31 12:04 -0700)
tree77bca43f2078f11c47e190888476e27e971ff241
parent5e4aedaca7cee981ed21ac856fd27b4682bb7888
Linux 5.19 compat: bdev_max_secure_erase_sectors()

Linux 5.19 commit torvalds/linux@44abff2c0 removed the
blk_queue_secure_erase() helper function.  The preferred
interface is to now use the bdev_max_secure_erase_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
include/os/linux/kernel/linux/blkdev_compat.h
module/os/linux/zfs/vdev_disk.c