]> Pileus Git - ~andy/linux/blobdiff - fs/generic_acl.c
fs: make posix_acl_create more useful
[~andy/linux] / fs / generic_acl.c
index b3f3676796d31a6870a771ed6952977cfc16d448..4357f39c8441c51c890ee15dcbd923755c363259 100644 (file)
@@ -128,7 +128,7 @@ generic_acl_init(struct inode *inode, struct inode *dir)
        if (acl) {
                if (S_ISDIR(inode->i_mode))
                        set_cached_acl(inode, ACL_TYPE_DEFAULT, acl);
-               error = posix_acl_create(&acl, GFP_KERNEL, &inode->i_mode);
+               error = __posix_acl_create(&acl, GFP_KERNEL, &inode->i_mode);
                if (error < 0)
                        return error;
                if (error > 0)
@@ -158,7 +158,7 @@ generic_acl_chmod(struct inode *inode)
                return -EOPNOTSUPP;
        acl = get_cached_acl(inode, ACL_TYPE_ACCESS);
        if (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;
                set_cached_acl(inode, ACL_TYPE_ACCESS, acl);