HomeFreeBSD

Linux 6.9 compat: blk_alloc_disk() now takes two args

Description

Linux 6.9 compat: blk_alloc_disk() now takes two args

There's an extra nullable arg for queue limits. Detect it, and set it to
NULL. Similar change for blk_mq_alloc_disk(), now three args, same
treatment.

Error return now has error encoded in the return, so detect with
IS_ERR() and explicitly NULL our own return.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16027
Closes #16033

Details

Provenance
rob.norris_klarasystems.comAuthored on Mar 27 2024, 12:24 AM
Tony Hutter <hutter2@llnl.gov>Committed on Apr 22 2024, 4:23 PM
Parents
rG3bd7cd06b711: Linux 6.9 compat: bdev handles are now struct file
Branches
Unknown
Tags
Unknown