Message ID | 4DF74D3B.40804@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/cifs/fscache.c b/fs/cifs/fscache.c index d368a47..d2c268a 100644 --- a/fs/cifs/fscache.c +++ b/fs/cifs/fscache.c @@ -94,6 +94,10 @@ static void cifs_fscache_disable_inode_cookie(struct inode *inode) if (cifsi->fscache) { cFYI(1, "CIFS disabling inode cookie (0x%p)", cifsi->fscache); + /* invalidate any mapped pages that were read in before */ + if (inode->i_mapping && inode->i_mapping->nrpages) + invalidate_inode_pages2(inode->i_mapping); + fscache_relinquish_cookie(cifsi->fscache, 1); cifsi->fscache = NULL; }