diff options
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index f45161363be2..fd2c5c8158cf 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -235,8 +235,10 @@ 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 | } | ||
240 | spin_unlock(&inode->i_lock); | 242 | spin_unlock(&inode->i_lock); |
241 | } | 243 | } |
242 | 244 | ||