History

NFS: nfs_mark_for_revalidate should always set NFS_INO_REVAL_PAGECACHE

I'm not aware of any existing bugs around this, but the expectation is that nfs_mark_for_revalidate() should always force a revalidation of the cached metadata.

Trond Myklebust committed 11 years ago

Commit 115c48d1 parent cd812591 file · +5 −2Browse files

Unified · Split

include/linux/nfs_fs.h+5−2
@@ -292,9 +292,12 @@ static inline void nfs_mark_for_revalidate(struct inode *inode) · 291 unmodified lines
292292 struct nfs_inode *nfsi = NFS_I(inode);
293293
294294 spin_lock(&inode->i_lock);
295− nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_ACCESS;
295+ nfsi->cache_validity |= NFS_INO_INVALID_ATTR |
296+ NFS_INO_REVAL_PAGECACHE |
297+ NFS_INO_INVALID_ACCESS |
298+ NFS_INO_INVALID_ACL;
296299 if (S_ISDIR(inode->i_mode))
297− nfsi->cache_validity |= NFS_INO_REVAL_PAGECACHE|NFS_INO_INVALID_DATA;
300+ nfsi->cache_validity |= NFS_INO_INVALID_DATA;
298301 spin_unlock(&inode->i_lock);
299302 }
300303

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t