HomeFreeBSD

Linux 5.12 update: bio_max_segs() replaces BIO_MAX_PAGES

Description

Linux 5.12 update: bio_max_segs() replaces BIO_MAX_PAGES

The BIO_MAX_PAGES macro is being retired in favor of a bio_max_segs()
function that implements the typical MIN(x,y) logic used throughout the
kernel for bounding the allocation, and also the new implementation is
intended to be signed-safe (which the former was not).

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #11765

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Mar 20 2021, 5:33 AM
GitHub <noreply@github.com>Committed on Mar 20 2021, 5:33 AM
Parents
rGe2a8296131e9: Linux 5.12 compat: idmapped mounts
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGffd6978ef59c: Linux 5.12 update: bio_max_segs() replaces BIO_MAX_PAGES (authored by Coleman Kane <ckane@colemankane.org>).Mar 20 2021, 5:33 AM