Lines Matching refs:fscache
68 v9ses->fscache = NULL; in v9fs_cache_session_get_cookie()
73 v9ses->fscache = fscache_acquire_cookie(v9fs_cache_netfs.primary_index, in v9fs_cache_session_get_cookie()
80 v9ses, v9ses->fscache); in v9fs_cache_session_get_cookie()
86 v9ses, v9ses->fscache); in v9fs_cache_session_put_cookie()
87 fscache_relinquish_cookie(v9ses->fscache, NULL, false); in v9fs_cache_session_put_cookie()
88 v9ses->fscache = NULL; in v9fs_cache_session_put_cookie()
124 if (v9inode->fscache) in v9fs_cache_inode_get_cookie()
128 v9inode->fscache = fscache_acquire_cookie(v9ses->fscache, in v9fs_cache_inode_get_cookie()
139 inode, v9inode->fscache); in v9fs_cache_inode_get_cookie()
146 if (!v9inode->fscache) in v9fs_cache_inode_put_cookie()
149 inode, v9inode->fscache); in v9fs_cache_inode_put_cookie()
151 fscache_relinquish_cookie(v9inode->fscache, &v9inode->qid.version, in v9fs_cache_inode_put_cookie()
153 v9inode->fscache = NULL; in v9fs_cache_inode_put_cookie()
160 if (!v9inode->fscache) in v9fs_cache_inode_flush_cookie()
163 inode, v9inode->fscache); in v9fs_cache_inode_flush_cookie()
165 fscache_relinquish_cookie(v9inode->fscache, NULL, true); in v9fs_cache_inode_flush_cookie()
166 v9inode->fscache = NULL; in v9fs_cache_inode_flush_cookie()
173 if (!v9inode->fscache) in v9fs_cache_inode_set_cookie()
192 if (!v9inode->fscache) in v9fs_cache_inode_reset_cookie()
195 old = v9inode->fscache; in v9fs_cache_inode_reset_cookie()
198 fscache_relinquish_cookie(v9inode->fscache, NULL, true); in v9fs_cache_inode_reset_cookie()
201 v9inode->fscache = fscache_acquire_cookie(v9ses->fscache, in v9fs_cache_inode_reset_cookie()
211 inode, old, v9inode->fscache); in v9fs_cache_inode_reset_cookie()
221 BUG_ON(!v9inode->fscache); in __v9fs_fscache_release_page()
223 return fscache_maybe_release_page(v9inode->fscache, page, gfp); in __v9fs_fscache_release_page()
231 BUG_ON(!v9inode->fscache); in __v9fs_fscache_invalidate_page()
234 fscache_wait_on_page_write(v9inode->fscache, page); in __v9fs_fscache_invalidate_page()
236 fscache_uncache_page(v9inode->fscache, page); in __v9fs_fscache_invalidate_page()
262 if (!v9inode->fscache) in __v9fs_readpage_from_fscache()
265 ret = fscache_read_or_alloc_page(v9inode->fscache, in __v9fs_readpage_from_fscache()
300 if (!v9inode->fscache) in __v9fs_readpages_from_fscache()
303 ret = fscache_read_or_alloc_pages(v9inode->fscache, in __v9fs_readpages_from_fscache()
335 ret = fscache_write_page(v9inode->fscache, page, in __v9fs_readpage_to_fscache()
350 fscache_wait_on_page_write(v9inode->fscache, page); in __v9fs_fscache_wait_on_page_write()