aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index f677ede766d1..ff726c86b290 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -1944,6 +1944,9 @@ static void cifs_copy_cache_pages(struct address_space *mapping,
1944 SetPageUptodate(page); 1944 SetPageUptodate(page);
1945 unlock_page(page); 1945 unlock_page(page);
1946 data += PAGE_CACHE_SIZE; 1946 data += PAGE_CACHE_SIZE;
1947
1948 /* add page to FS-Cache */
1949 cifs_readpage_to_fscache(mapping->host, page);
1947 } 1950 }
1948 return; 1951 return;
1949} 1952}
@@ -2113,6 +2116,10 @@ static int cifs_readpage_worker(struct file *file, struct page *page,
2113 2116
2114 flush_dcache_page(page); 2117 flush_dcache_page(page);
2115 SetPageUptodate(page); 2118 SetPageUptodate(page);
2119
2120 /* send this page to the cache */
2121 cifs_readpage_to_fscache(file->f_path.dentry->d_inode, page);
2122
2116 rc = 0; 2123 rc = 0;
2117 2124
2118io_error: 2125io_error: