Lines Matching refs:fscache
28 server->fscache = in cifs_fscache_get_client_cookie()
32 server->fscache); in cifs_fscache_get_client_cookie()
38 server->fscache); in cifs_fscache_release_client_cookie()
39 fscache_relinquish_cookie(server->fscache, 0); in cifs_fscache_release_client_cookie()
40 server->fscache = NULL; in cifs_fscache_release_client_cookie()
47 tcon->fscache = in cifs_fscache_get_super_cookie()
48 fscache_acquire_cookie(server->fscache, in cifs_fscache_get_super_cookie()
50 cFYI(1, "%s: (0x%p/0x%p)", __func__, server->fscache, in cifs_fscache_get_super_cookie()
51 tcon->fscache); in cifs_fscache_get_super_cookie()
56 cFYI(1, "%s: (0x%p)", __func__, tcon->fscache); in cifs_fscache_release_super_cookie()
57 fscache_relinquish_cookie(tcon->fscache, 0); in cifs_fscache_release_super_cookie()
58 tcon->fscache = NULL; in cifs_fscache_release_super_cookie()
67 if (cifsi->fscache) in cifs_fscache_enable_inode_cookie()
71 cifsi->fscache = fscache_acquire_cookie(tcon->fscache, in cifs_fscache_enable_inode_cookie()
74 tcon->fscache, cifsi->fscache); in cifs_fscache_enable_inode_cookie()
82 if (cifsi->fscache) { in cifs_fscache_release_inode_cookie()
83 cFYI(1, "%s: (0x%p)", __func__, cifsi->fscache); in cifs_fscache_release_inode_cookie()
84 fscache_relinquish_cookie(cifsi->fscache, 0); in cifs_fscache_release_inode_cookie()
85 cifsi->fscache = NULL; in cifs_fscache_release_inode_cookie()
93 if (cifsi->fscache) { in cifs_fscache_disable_inode_cookie()
94 cFYI(1, "%s: (0x%p)", __func__, cifsi->fscache); in cifs_fscache_disable_inode_cookie()
95 fscache_uncache_all_inode_pages(cifsi->fscache, inode); in cifs_fscache_disable_inode_cookie()
96 fscache_relinquish_cookie(cifsi->fscache, 1); in cifs_fscache_disable_inode_cookie()
97 cifsi->fscache = NULL; in cifs_fscache_disable_inode_cookie()
113 struct fscache_cookie *old = cifsi->fscache; in cifs_fscache_reset_inode_cookie()
115 if (cifsi->fscache) { in cifs_fscache_reset_inode_cookie()
117 fscache_relinquish_cookie(cifsi->fscache, 1); in cifs_fscache_reset_inode_cookie()
119 cifsi->fscache = fscache_acquire_cookie( in cifs_fscache_reset_inode_cookie()
120 cifs_sb_master_tcon(cifs_sb)->fscache, in cifs_fscache_reset_inode_cookie()
124 __func__, cifsi->fscache, old); in cifs_fscache_reset_inode_cookie()
135 cifsi->fscache); in cifs_fscache_release_page()
136 if (!fscache_maybe_release_page(cifsi->fscache, page, gfp)) in cifs_fscache_release_page()
160 CIFS_I(inode)->fscache, page, inode); in __cifs_readpage_from_fscache()
161 ret = fscache_read_or_alloc_page(CIFS_I(inode)->fscache, page, in __cifs_readpage_from_fscache()
192 CIFS_I(inode)->fscache, *nr_pages, inode); in __cifs_readpages_from_fscache()
193 ret = fscache_read_or_alloc_pages(CIFS_I(inode)->fscache, mapping, in __cifs_readpages_from_fscache()
220 CIFS_I(inode)->fscache, page, inode); in __cifs_readpage_to_fscache()
221 ret = fscache_write_page(CIFS_I(inode)->fscache, page, GFP_KERNEL); in __cifs_readpage_to_fscache()
223 fscache_uncache_page(CIFS_I(inode)->fscache, page); in __cifs_readpage_to_fscache()
229 struct fscache_cookie *cookie = cifsi->fscache; in __cifs_fscache_invalidate_page()