diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfs_fs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index c71227dd4389..1d81e7d82970 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -234,8 +234,12 @@ static inline int nfs_caches_unstable(struct inode *inode) | |||
234 | 234 | ||
235 | static inline void nfs_mark_for_revalidate(struct inode *inode) | 235 | static inline void nfs_mark_for_revalidate(struct inode *inode) |
236 | { | 236 | { |
237 | struct nfs_inode *nfsi = NFS_I(inode); | ||
238 | |||
237 | spin_lock(&inode->i_lock); | 239 | spin_lock(&inode->i_lock); |
238 | NFS_I(inode)->cache_validity |= NFS_INO_INVALID_ATTR | NFS_INO_INVALID_ACCESS; | 240 | nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_ACCESS; |
241 | if (S_ISDIR(inode->i_mode)) | ||
242 | nfsi->cache_validity |= NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA; | ||
239 | spin_unlock(&inode->i_lock); | 243 | spin_unlock(&inode->i_lock); |
240 | } | 244 | } |
241 | 245 | ||