Lines Matching refs:fscache
34 if (server->fscache) in cifs_fscache_get_client_cookie()
40 server->fscache = in cifs_fscache_get_client_cookie()
47 __func__, server, server->fscache); in cifs_fscache_get_client_cookie()
53 __func__, server, server->fscache); in cifs_fscache_release_client_cookie()
54 fscache_relinquish_cookie(server->fscache, NULL, false); in cifs_fscache_release_client_cookie()
55 server->fscache = NULL; in cifs_fscache_release_client_cookie()
69 if (tcon->fscache) in cifs_fscache_get_super_cookie()
75 tcon->fscache = NULL; in cifs_fscache_get_super_cookie()
84 tcon->fscache = in cifs_fscache_get_super_cookie()
85 fscache_acquire_cookie(server->fscache, in cifs_fscache_get_super_cookie()
92 __func__, server->fscache, tcon->fscache); in cifs_fscache_get_super_cookie()
104 cifs_dbg(FYI, "%s: (0x%p)\n", __func__, tcon->fscache); in cifs_fscache_release_super_cookie()
105 fscache_relinquish_cookie(tcon->fscache, &auxdata, false); in cifs_fscache_release_super_cookie()
106 tcon->fscache = NULL; in cifs_fscache_release_super_cookie()
121 cifsi->fscache = in cifs_fscache_acquire_inode_cookie()
122 fscache_acquire_cookie(tcon->fscache, in cifs_fscache_acquire_inode_cookie()
135 if (cifsi->fscache) in cifs_fscache_enable_inode_cookie()
144 __func__, tcon->fscache, cifsi->fscache); in cifs_fscache_enable_inode_cookie()
152 if (cifsi->fscache) { in cifs_fscache_release_inode_cookie()
160 cifs_dbg(FYI, "%s: (0x%p)\n", __func__, cifsi->fscache); in cifs_fscache_release_inode_cookie()
162 fscache_update_cookie(cifsi->fscache, &auxdata); in cifs_fscache_release_inode_cookie()
163 fscache_relinquish_cookie(cifsi->fscache, &auxdata, false); in cifs_fscache_release_inode_cookie()
164 cifsi->fscache = NULL; in cifs_fscache_release_inode_cookie()
173 if (cifsi->fscache) { in cifs_fscache_update_inode_cookie()
181 cifs_dbg(FYI, "%s: (0x%p)\n", __func__, cifsi->fscache); in cifs_fscache_update_inode_cookie()
182 fscache_update_cookie(cifsi->fscache, &auxdata); in cifs_fscache_update_inode_cookie()
196 struct fscache_cookie *old = cifsi->fscache; in cifs_fscache_reset_inode_cookie()
198 if (cifsi->fscache) { in cifs_fscache_reset_inode_cookie()
200 fscache_relinquish_cookie(cifsi->fscache, NULL, true); in cifs_fscache_reset_inode_cookie()
204 __func__, cifsi->fscache, old); in cifs_fscache_reset_inode_cookie()
215 __func__, page, cifsi->fscache); in cifs_fscache_release_page()
216 if (!fscache_maybe_release_page(cifsi->fscache, page, gfp)) in cifs_fscache_release_page()
240 __func__, CIFS_I(inode)->fscache, page, inode); in __cifs_readpage_from_fscache()
241 ret = fscache_read_or_alloc_page(CIFS_I(inode)->fscache, page, in __cifs_readpage_from_fscache()
272 __func__, CIFS_I(inode)->fscache, *nr_pages, inode); in __cifs_readpages_from_fscache()
273 ret = fscache_read_or_alloc_pages(CIFS_I(inode)->fscache, mapping, in __cifs_readpages_from_fscache()
300 WARN_ON(!cifsi->fscache); in __cifs_readpage_to_fscache()
303 __func__, cifsi->fscache, page, inode); in __cifs_readpage_to_fscache()
304 ret = fscache_write_page(cifsi->fscache, page, in __cifs_readpage_to_fscache()
307 fscache_uncache_page(cifsi->fscache, page); in __cifs_readpage_to_fscache()
313 __func__, CIFS_I(inode)->fscache, inode); in __cifs_fscache_readpages_cancel()
314 fscache_readpages_cancel(CIFS_I(inode)->fscache, pages); in __cifs_fscache_readpages_cancel()
320 struct fscache_cookie *cookie = cifsi->fscache; in __cifs_fscache_invalidate_page()
330 struct fscache_cookie *cookie = cifsi->fscache; in __cifs_fscache_wait_on_page_write()
339 struct fscache_cookie *cookie = cifsi->fscache; in __cifs_fscache_uncache_page()