summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2009-06-17 18:02:14 -0700
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-06-17 18:02:14 -0700
commit4bf259e3ae5015e73282ba66716c4a917e1264ac (patch)
tree4c79623911d24d86da799cee2797378a6a2a1181 /fs/nfs/nfs4proc.c
parenta5a16bae707cd5d2bc97d7bd1a30079f18113a77 (diff)
downloadkernel-crypto-4bf259e3ae5015e73282ba66716c4a917e1264ac.tar.gz
kernel-crypto-4bf259e3ae5015e73282ba66716c4a917e1264ac.tar.xz
kernel-crypto-4bf259e3ae5015e73282ba66716c4a917e1264ac.zip
nfs: remove unnecessary NFS_INO_INVALID_ACL checks
Unless I'm mistaken, NFS_INO_INVALID_ACL is being checked twice during getacl calls (i.e. first via nfs_revalidate_inode() and then by each all site). Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 55314e72163..42e6a3b0549 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -2824,8 +2824,6 @@ static ssize_t nfs4_proc_get_acl(struct inode *inode, void *buf, size_t buflen)
ret = nfs_revalidate_inode(server, inode);
if (ret < 0)
return ret;
- if (NFS_I(inode)->cache_validity & NFS_INO_INVALID_ACL)
- nfs_zap_acl_cache(inode);
ret = nfs4_read_cached_acl(inode, buf, buflen);
if (ret != -ENOENT)
return ret;