diff options
Diffstat (limited to 'fs/cifs/fscache.c')
-rw-r--r-- | fs/cifs/fscache.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/cifs/fscache.c b/fs/cifs/fscache.c index 5dd935280049..3b1636704c85 100644 --- a/fs/cifs/fscache.c +++ b/fs/cifs/fscache.c | |||
@@ -140,6 +140,17 @@ int cifs_fscache_release_page(struct page *page, gfp_t gfp) | |||
140 | return 1; | 140 | return 1; |
141 | } | 141 | } |
142 | 142 | ||
143 | void __cifs_readpage_to_fscache(struct inode *inode, struct page *page) | ||
144 | { | ||
145 | int ret; | ||
146 | |||
147 | cFYI(1, "CIFS: readpage_to_fscache(fsc: %p, p: %p, i: %p", | ||
148 | CIFS_I(inode)->fscache, page, inode); | ||
149 | ret = fscache_write_page(CIFS_I(inode)->fscache, page, GFP_KERNEL); | ||
150 | if (ret != 0) | ||
151 | fscache_uncache_page(CIFS_I(inode)->fscache, page); | ||
152 | } | ||
153 | |||
143 | void __cifs_fscache_invalidate_page(struct page *page, struct inode *inode) | 154 | void __cifs_fscache_invalidate_page(struct page *page, struct inode *inode) |
144 | { | 155 | { |
145 | struct cifsInodeInfo *cifsi = CIFS_I(inode); | 156 | struct cifsInodeInfo *cifsi = CIFS_I(inode); |