HomeFreeBSD

Linux 6.3 compat: idmapped mount API changes

Description

Linux 6.3 compat: idmapped mount API changes

Linux kernel 6.3 changed a bunch of APIs to use the dedicated idmap
type for mounts (struct mnt_idmap), we need to detect these changes
and make zfs work with the new APIs.

NOTE: This backport only includes the configure checks to detect the 6.3 idmap API changes. It does not include support for idmap. When provided the idmap variable is ignored in most case in the same way the user_ns argument was ignored. This change is solely to provide compatibility with the new interfaces.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes #14682

Details

Provenance
youzhongyang <youzhong@gmail.com>Authored on Apr 10 2023, 9:15 PM
Tony Hutter <hutter2@llnl.gov>Committed on Jun 5 2023, 5:59 PM
Parents
rG04305bbd1836: Linux 6.3 compat: writepage_t first arg struct folio*
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGf0aca5f7bb09: Linux 6.3 compat: idmapped mount API changes (authored by youzhongyang <youzhong@gmail.com>).Jun 5 2023, 5:59 PM