diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-01 10:00:23 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-09 17:19:40 -0400 |
commit | f38211100d4823be530577dc3452f838861222ec (patch) | |
tree | af73251d3c4a71deee6b800f62b748759b87cb44 /include/linux/nfs_fs.h | |
parent | 7668fdbe9aaeab705d1169ac86d0d18a12906d06 (diff) |
NFS: nfs_mark_for_revalidate don't update cache_change_attribute
Just let the subsequent inode revalidation do the update...
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 0197b1243fe0..35d61924e0b9 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -235,10 +235,8 @@ static inline void nfs_mark_for_revalidate(struct inode *inode) | |||
235 | 235 | ||
236 | spin_lock(&inode->i_lock); | 236 | spin_lock(&inode->i_lock); |
237 | nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_ACCESS; | 237 | nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_ACCESS; |
238 | if (S_ISDIR(inode->i_mode)) { | 238 | if (S_ISDIR(inode->i_mode)) |
239 | nfsi->cache_validity |= NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA; | 239 | nfsi->cache_validity |= NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA; |
240 | nfsi->cache_change_attribute = jiffies; | ||
241 | } | ||
242 | spin_unlock(&inode->i_lock); | 240 | spin_unlock(&inode->i_lock); |
243 | } | 241 | } |
244 | 242 | ||