summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-09-28 23:20:07 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-09 23:19:06 +0200
commit8850df999cd16aa141098e2e8be04a590276f3cc (patch)
treede5d934bff3ae6595dcfcf6d725dd991bb242f21 /fs/nfs/nfs4proc.c
parentNFS: Fix atime revalidation in readdir() (diff)
downloadlinux-8850df999cd16aa141098e2e8be04a590276f3cc.tar.xz
linux-8850df999cd16aa141098e2e8be04a590276f3cc.zip
NFS: Fix atime revalidation in read()
NFSv3 will correctly update atime on a read() 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 9c27a6ed1a62..d311984d2c88 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -2396,6 +2396,8 @@ static int nfs4_read_done(struct rpc_task *task, struct nfs_read_data *data)
rpc_restart_call(task);
return -EAGAIN;
}
+
+ nfs_invalidate_atime(data->inode);
if (task->tk_status > 0)
renew_lease(server, data->timestamp);
return 0;