Lines Matching refs:fscache
53 v9ses->fscache = NULL; in v9fs_cache_session_get_cookie()
60 v9ses->fscache = fscache_acquire_cookie(v9fs_cache_netfs.primary_index, in v9fs_cache_session_get_cookie()
67 v9ses, v9ses->fscache); in v9fs_cache_session_get_cookie()
73 v9ses, v9ses->fscache); in v9fs_cache_session_put_cookie()
74 fscache_relinquish_cookie(v9ses->fscache, NULL, false); in v9fs_cache_session_put_cookie()
75 v9ses->fscache = NULL; in v9fs_cache_session_put_cookie()
111 if (v9inode->fscache) in v9fs_cache_inode_get_cookie()
115 v9inode->fscache = fscache_acquire_cookie(v9ses->fscache, in v9fs_cache_inode_get_cookie()
126 inode, v9inode->fscache); in v9fs_cache_inode_get_cookie()
133 if (!v9inode->fscache) in v9fs_cache_inode_put_cookie()
136 inode, v9inode->fscache); in v9fs_cache_inode_put_cookie()
138 fscache_relinquish_cookie(v9inode->fscache, &v9inode->qid.version, in v9fs_cache_inode_put_cookie()
140 v9inode->fscache = NULL; in v9fs_cache_inode_put_cookie()
147 if (!v9inode->fscache) in v9fs_cache_inode_flush_cookie()
150 inode, v9inode->fscache); in v9fs_cache_inode_flush_cookie()
152 fscache_relinquish_cookie(v9inode->fscache, NULL, true); in v9fs_cache_inode_flush_cookie()
153 v9inode->fscache = NULL; in v9fs_cache_inode_flush_cookie()
160 if (!v9inode->fscache) in v9fs_cache_inode_set_cookie()
179 if (!v9inode->fscache) in v9fs_cache_inode_reset_cookie()
182 old = v9inode->fscache; in v9fs_cache_inode_reset_cookie()
185 fscache_relinquish_cookie(v9inode->fscache, NULL, true); in v9fs_cache_inode_reset_cookie()
188 v9inode->fscache = fscache_acquire_cookie(v9ses->fscache, in v9fs_cache_inode_reset_cookie()
198 inode, old, v9inode->fscache); in v9fs_cache_inode_reset_cookie()
208 BUG_ON(!v9inode->fscache); in __v9fs_fscache_release_page()
210 return fscache_maybe_release_page(v9inode->fscache, page, gfp); in __v9fs_fscache_release_page()
218 BUG_ON(!v9inode->fscache); in __v9fs_fscache_invalidate_page()
221 fscache_wait_on_page_write(v9inode->fscache, page); in __v9fs_fscache_invalidate_page()
223 fscache_uncache_page(v9inode->fscache, page); in __v9fs_fscache_invalidate_page()
249 if (!v9inode->fscache) in __v9fs_readpage_from_fscache()
252 ret = fscache_read_or_alloc_page(v9inode->fscache, in __v9fs_readpage_from_fscache()
287 if (!v9inode->fscache) in __v9fs_readpages_from_fscache()
290 ret = fscache_read_or_alloc_pages(v9inode->fscache, in __v9fs_readpages_from_fscache()
322 ret = fscache_write_page(v9inode->fscache, page, in __v9fs_readpage_to_fscache()
337 fscache_wait_on_page_write(v9inode->fscache, page); in __v9fs_fscache_wait_on_page_write()