X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flustre_compat.h;h=0c0b3ba851d5641b4984aff1d9b667945435320a;hp=b8cfb06d5cee08dcd175aab6296b64d035683795;hb=refs%2Fchanges%2F85%2F36085%2F5;hpb=7f199dbf0261b89afe0dc8185db4403ae0efdefa diff --git a/lustre/include/lustre_compat.h b/lustre/include/lustre_compat.h index b8cfb06..0c0b3ba 100644 --- a/lustre/include/lustre_compat.h +++ b/lustre/include/lustre_compat.h @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -422,8 +423,22 @@ __vfs_setxattr(struct dentry *dentry, struct inode *inode, const char *name, } #endif /* HAVE_VFS_SETXATTR */ +#ifndef HAVE_POSIXACL_USER_NS +/* + * Mask out &init_user_ns so we don't jump + * through hoops to define it somehow only + * to have it ignored anyway. + */ +#define posix_acl_from_xattr(a, b, c) posix_acl_from_xattr(b, c) +#define posix_acl_to_xattr(a, b, c, d) posix_acl_to_xattr(b, c, d) +#endif + +#ifndef HAVE_POSIX_ACL_VALID_USER_NS +#define posix_acl_valid(a,b) posix_acl_valid(b) +#endif + #ifdef HAVE_IOP_SET_ACL -#ifdef CONFIG_FS_POSIX_ACL +#ifdef CONFIG_LUSTRE_FS_POSIX_ACL #ifndef HAVE_POSIX_ACL_UPDATE_MODE static inline int posix_acl_update_mode(struct inode *inode, umode_t *mode_p, struct posix_acl **acl)