diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfs_fs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index deef9567788a..9a6047ff1b25 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -238,8 +238,11 @@ static inline int nfs_caches_unstable(struct inode *inode) | |||
238 | 238 | ||
239 | static inline void NFS_CACHEINV(struct inode *inode) | 239 | static inline void NFS_CACHEINV(struct inode *inode) |
240 | { | 240 | { |
241 | if (!nfs_caches_unstable(inode)) | 241 | if (!nfs_caches_unstable(inode)) { |
242 | spin_lock(&inode->i_lock); | ||
242 | NFS_I(inode)->cache_validity |= NFS_INO_INVALID_ATTR | NFS_INO_INVALID_ACCESS; | 243 | NFS_I(inode)->cache_validity |= NFS_INO_INVALID_ATTR | NFS_INO_INVALID_ACCESS; |
244 | spin_unlock(&inode->i_lock); | ||
245 | } | ||
243 | } | 246 | } |
244 | 247 | ||
245 | static inline int nfs_server_capable(struct inode *inode, int cap) | 248 | static inline int nfs_server_capable(struct inode *inode, int cap) |