HomeFreeBSD

Linux 5.19 compat: bdev_max_discard_sectors()

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on May 27 2022, 5:51 PM
Parents
rG5f264996f4dc: Linux 5.18 compat: bio_alloc()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG5e4aedaca7ce: Linux 5.19 compat: bdev_max_discard_sectors() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).May 31 2022, 7:04 PM