summaryrefslogtreecommitdiffstats
path: root/fs/ntfs3
diff options
context:
space:
mode:
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2021-09-24 17:47:04 +0300
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2021-10-05 16:39:17 +0300
commitb1e0c55a409955aba2d5a151f3f3a8bda8e45193 (patch)
tree4644f8830ac3542555ebfff621720b5c262c2c75 /fs/ntfs3
parent35afb70dcfe4eb445060dd955e5b67d962869ce5 (diff)
downloadlinux-stable-b1e0c55a409955aba2d5a151f3f3a8bda8e45193.tar.gz
linux-stable-b1e0c55a409955aba2d5a151f3f3a8bda8e45193.tar.bz2
linux-stable-b1e0c55a409955aba2d5a151f3f3a8bda8e45193.zip
fs/ntfs3: Use available posix_acl_release instead of ntfs_posix_acl_release
We don't need to maintain ntfs_posix_acl_release. Reviewed-by: Kari Argillander <kari.argillander@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r--fs/ntfs3/xattr.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/fs/ntfs3/xattr.c b/fs/ntfs3/xattr.c
index 83bbee277e12..253a07d9aa7b 100644
--- a/fs/ntfs3/xattr.c
+++ b/fs/ntfs3/xattr.c
@@ -475,12 +475,6 @@ out:
}
#ifdef CONFIG_NTFS3_FS_POSIX_ACL
-static inline void ntfs_posix_acl_release(struct posix_acl *acl)
-{
- if (acl && refcount_dec_and_test(&acl->a_refcount))
- kfree(acl);
-}
-
static struct posix_acl *ntfs_get_acl_ex(struct user_namespace *mnt_userns,
struct inode *inode, int type,
int locked)
@@ -641,7 +635,7 @@ static int ntfs_xattr_get_acl(struct user_namespace *mnt_userns,
return -ENODATA;
err = posix_acl_to_xattr(mnt_userns, acl, buffer, size);
- ntfs_posix_acl_release(acl);
+ posix_acl_release(acl);
return err;
}
@@ -678,7 +672,7 @@ static int ntfs_xattr_set_acl(struct user_namespace *mnt_userns,
err = ntfs_set_acl(mnt_userns, inode, acl, type);
release_and_out:
- ntfs_posix_acl_release(acl);
+ posix_acl_release(acl);
return err;
}