]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 5.19 compat: bdev_max_discard_sectors()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 27 May 2022 17:51:55 +0000 (17:51 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 1 Jun 2022 21:24:49 +0000 (14:24 -0700)
commit9ce5eb18efba19c615e82836fdd9fa77079087d4
tree40651346129efd5dce3dfaaa82b21f575ca184c0
parent5a639f0802b2ef4feb6f6fe37599c47a26f9b1f0
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