diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2016-03-24 09:38:36 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-28 13:49:39 -0400 |
commit | 8861964f4c7caecbacc89bcb6b513b40cf097a02 (patch) | |
tree | 0bbc723dd7077519120bb58fde46ddf3a16f887b | |
parent | 7dffc87f2eea9f80889d2eb87bfbe63e51b9709c (diff) |
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 <agruenba@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/jfs/acl.c | 4 |
1 files changed, 0 insertions, 4 deletions
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) | |||
34 | int size; | 34 | int size; |
35 | char *value = NULL; | 35 | char *value = NULL; |
36 | 36 | ||
37 | acl = get_cached_acl(inode, type); | ||
38 | if (acl != ACL_NOT_CACHED) | ||
39 | return acl; | ||
40 | |||
41 | switch(type) { | 37 | switch(type) { |
42 | case ACL_TYPE_ACCESS: | 38 | case ACL_TYPE_ACCESS: |
43 | ea_name = XATTR_NAME_POSIX_ACL_ACCESS; | 39 | ea_name = XATTR_NAME_POSIX_ACL_ACCESS; |