#include "llite_internal.h"
-struct posix_acl *
-ll_get_inode_acl(struct inode *inode, int type, bool rcu)
+static struct posix_acl *
+ll_get_acl_common(struct inode *inode, int type, bool rcu)
{
struct ll_inode_info *lli = ll_i2info(inode);
struct posix_acl *acl = NULL;
}
if (len > 0)
acl = posix_acl_from_xattr(&init_user_ns, value, len);
- else if (len == -ENODATA || len == -ENOSYS)
+ else if (len == -ENODATA || len == -ENOSYS || len == -EOPNOTSUPP)
acl = NULL;
else
acl = ERR_PTR(len);
RETURN(acl);
}
+/* v6.1-rc1-3-gcac2f8b8d8b5 */
+struct posix_acl *ll_get_inode_acl(struct inode *inode, int type, bool rcu)
+{
+ return ll_get_acl_common(inode, type, rcu);
+}
+
struct posix_acl *ll_get_acl(
#ifdef HAVE_ACL_WITH_DENTRY
struct mnt_idmap *map, struct dentry *dentry, int type)
bool rcu = false;
#endif
- return ll_get_inode_acl(inode, type, rcu);
+ return ll_get_acl_common(inode, type, rcu);
}
#ifdef HAVE_IOP_SET_ACL