]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 6.8 compat: handle mnt_idmap user_namespace change
authorRob Norris <robn@despairlabs.com>
Tue, 23 Jan 2024 10:14:06 +0000 (21:14 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 29 Jan 2024 22:53:29 +0000 (14:53 -0800)
commite6ca28c970842c387852acca89eaabfb54267b90
tree30d89091c5d68ff3c366faa984503b2a6e84ec60
parentcbd51c5f2416fecd1e0c1b79c7dad385ad29f5ce
Linux 6.8 compat: handle mnt_idmap user_namespace change

struct mnt_idmap no longer has a struct user_namespace within it. Work
around this by creating a temporary with the copy of the map we need
taken from the idmap.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Youzhong Yang <yyang@mathworks.com>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #15805
config/kernel-idmap_mnt_api.m4
config/kernel.m4
include/os/linux/spl/sys/cred.h
include/os/linux/spl/sys/types.h