Merge tag 'hwmon-for-v6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/groec...
[linux-2.6-microblaze.git] / include / linux / posix_acl.h
index 07e171b..ee608d2 100644 (file)
@@ -99,6 +99,13 @@ static inline void cache_no_acl(struct inode *inode)
        inode->i_acl = NULL;
        inode->i_default_acl = NULL;
 }
+
+int vfs_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
+               const char *acl_name, struct posix_acl *kacl);
+struct posix_acl *vfs_get_acl(struct user_namespace *mnt_userns,
+                             struct dentry *dentry, const char *acl_name);
+int vfs_remove_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
+                  const char *acl_name);
 #else
 static inline int posix_acl_chmod(struct user_namespace *mnt_userns,
                                  struct dentry *dentry, umode_t mode)
@@ -126,6 +133,26 @@ static inline int posix_acl_create(struct inode *inode, umode_t *mode,
 static inline void forget_all_cached_acls(struct inode *inode)
 {
 }
+
+static inline int vfs_set_acl(struct user_namespace *mnt_userns,
+                             struct dentry *dentry, const char *name,
+                             struct posix_acl *acl)
+{
+       return -EOPNOTSUPP;
+}
+
+static inline struct posix_acl *vfs_get_acl(struct user_namespace *mnt_userns,
+                                           struct dentry *dentry,
+                                           const char *acl_name)
+{
+       return ERR_PTR(-EOPNOTSUPP);
+}
+
+static inline int vfs_remove_acl(struct user_namespace *mnt_userns,
+                                struct dentry *dentry, const char *acl_name)
+{
+       return -EOPNOTSUPP;
+}
 #endif /* CONFIG_FS_POSIX_ACL */
 
 struct posix_acl *get_inode_acl(struct inode *inode, int type);