mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Linux 4.9 compat: group_info changes
In Linux 4.9, torvalds/linux@81243ea, group_info changed from 2d array via ->blocks to 1d array via ->gid. We change the spl cred functions accordingly. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Chunwei Chen <david.chen@osnexus.com> Closes #581
This commit is contained in:
committed by
Brian Behlendorf
parent
87063d7dc3
commit
ae7eda1dde
@@ -34,6 +34,11 @@ typedef struct cred cred_t;
|
||||
#define kcred ((cred_t *)(init_task.cred))
|
||||
#define CRED() ((cred_t *)current_cred())
|
||||
|
||||
/* Linux 4.9 API change, GROUP_AT was removed */
|
||||
#ifndef GROUP_AT
|
||||
#define GROUP_AT(gi, i) ((gi)->gid[i])
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_KUIDGID_T
|
||||
|
||||
#define KUID_TO_SUID(x) (__kuid_val(x))
|
||||
|
||||
Reference in New Issue
Block a user