From: Andreas Gruenbacher Date: Thu, 24 Mar 2016 13:38:36 +0000 (+0100) Subject: jfs: Remove unnecessary code in jfs_get_acl X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8861964f4c7caecbacc89bcb6b513b40cf097a02;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git jfs: Remove unnecessary code in jfs_get_acl The get_acl inode operation is called only when no ACL is cached. It makes no sense to check for a cached ACL as the first thing inside such inode operations. Signed-off-by: Andreas Gruenbacher Signed-off-by: Al Viro --- diff --git a/fs/jfs/acl.c b/fs/jfs/acl.c index 49456853e9de..ab4882801b24 100644 --- a/fs/jfs/acl.c +++ b/fs/jfs/acl.c @@ -34,10 +34,6 @@ struct posix_acl *jfs_get_acl(struct inode *inode, int type) int size; char *value = NULL; - acl = get_cached_acl(inode, type); - if (acl != ACL_NOT_CACHED) - return acl; - switch(type) { case ACL_TYPE_ACCESS: ea_name = XATTR_NAME_POSIX_ACL_ACCESS;