diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-09-28 17:20:07 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-09 17:19:06 -0400 |
commit | 8850df999cd16aa141098e2e8be04a590276f3cc (patch) | |
tree | de5d934bff3ae6595dcfcf6d725dd991bb242f21 /fs/nfs/read.c | |
parent | c4812998398d9cbce8646494704c52297359ede0 (diff) | |
download | kernel_samsung_aries-8850df999cd16aa141098e2e8be04a590276f3cc.zip kernel_samsung_aries-8850df999cd16aa141098e2e8be04a590276f3cc.tar.gz kernel_samsung_aries-8850df999cd16aa141098e2e8be04a590276f3cc.tar.bz2 |
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/read.c')
-rw-r--r-- | fs/nfs/read.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/nfs/read.c b/fs/nfs/read.c index d6e62d7..4587a86 100644 --- a/fs/nfs/read.c +++ b/fs/nfs/read.c @@ -341,9 +341,6 @@ int nfs_readpage_result(struct rpc_task *task, struct nfs_read_data *data) set_bit(NFS_INO_STALE, &NFS_FLAGS(data->inode)); nfs_mark_for_revalidate(data->inode); } - spin_lock(&data->inode->i_lock); - NFS_I(data->inode)->cache_validity |= NFS_INO_INVALID_ATIME; - spin_unlock(&data->inode->i_lock); return 0; } |