diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-09-28 17:11:45 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-09 17:19:03 -0400 |
commit | c4812998398d9cbce8646494704c52297359ede0 (patch) | |
tree | 8c7b786779b03d1960c25800a7a27a10f8318e99 /fs/nfs/nfs4proc.c | |
parent | 57fa76f2da05d0fee597b26bbc1f05242252beab (diff) |
NFS: Fix atime revalidation in readdir()
NFSv3 will correctly update atime on a readdir call, so there is no need to
set the NFS_INO_INVALID_ATIME flag unless the call to nfs_refresh_inode()
fails.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 871c102d9bdf..9c27a6ed1a62 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -2197,6 +2197,9 @@ static int _nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, | |||
2197 | status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); | 2197 | status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); |
2198 | if (status == 0) | 2198 | if (status == 0) |
2199 | memcpy(NFS_COOKIEVERF(dir), res.verifier.data, NFS4_VERIFIER_SIZE); | 2199 | memcpy(NFS_COOKIEVERF(dir), res.verifier.data, NFS4_VERIFIER_SIZE); |
2200 | |||
2201 | nfs_invalidate_atime(dir); | ||
2202 | |||
2200 | dprintk("%s: returns %d\n", __FUNCTION__, status); | 2203 | dprintk("%s: returns %d\n", __FUNCTION__, status); |
2201 | return status; | 2204 | return status; |
2202 | } | 2205 | } |