jfs: Remove unnecessary code in jfs_get_acl
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 24 Mar 2016 13:38:36 +0000 (14:38 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 28 Mar 2016 17:49:39 +0000 (13:49 -0400)
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 <agruenba@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/jfs/acl.c

index 4945685..ab48828 100644 (file)
@@ -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;