diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/file.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 48b29d24c9f4..4d8ba8d491e5 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -3546,11 +3546,12 @@ static int cifs_release_page(struct page *page, gfp_t gfp) | |||
3546 | return cifs_fscache_release_page(page, gfp); | 3546 | return cifs_fscache_release_page(page, gfp); |
3547 | } | 3547 | } |
3548 | 3548 | ||
3549 | static void cifs_invalidate_page(struct page *page, unsigned long offset) | 3549 | static void cifs_invalidate_page(struct page *page, unsigned int offset, |
3550 | unsigned int length) | ||
3550 | { | 3551 | { |
3551 | struct cifsInodeInfo *cifsi = CIFS_I(page->mapping->host); | 3552 | struct cifsInodeInfo *cifsi = CIFS_I(page->mapping->host); |
3552 | 3553 | ||
3553 | if (offset == 0) | 3554 | if (offset == 0 && length == PAGE_CACHE_SIZE) |
3554 | cifs_fscache_invalidate_page(page, &cifsi->vfs_inode); | 3555 | cifs_fscache_invalidate_page(page, &cifsi->vfs_inode); |
3555 | } | 3556 | } |
3556 | 3557 | ||