fs: make posix_acl_create more useful
[platform/adaptation/renesas_rcar/renesas_kernel.git] / fs / xfs / xfs_acl.c
index 370eb3e..057ae2d 100644 (file)
@@ -297,12 +297,12 @@ xfs_inherit_acl(struct inode *inode, struct posix_acl *acl)
                        goto out;
        }
 
-       error = posix_acl_create(&acl, GFP_KERNEL, &mode);
+       error = __posix_acl_create(&acl, GFP_KERNEL, &mode);
        if (error < 0)
                return error;
 
        /*
-        * If posix_acl_create returns a positive value we need to
+        * If __posix_acl_create returns a positive value we need to
         * inherit a permission that can't be represented using the Unix
         * mode bits and we actually need to set an ACL.
         */
@@ -334,7 +334,7 @@ xfs_acl_chmod(struct inode *inode)
        if (IS_ERR(acl) || !acl)
                return PTR_ERR(acl);
 
-       error = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode);
+       error = __posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode);
        if (error)
                return error;