Lines Matching defs:fscache
31 struct fscache_cookie *fscache;
70 errorfc(fc, "fscache cookie already registered for fsid %pU, use fsc=<uniquifier> option",
88 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index,
94 if (fsc->fscache) {
95 ent->fscache = fsc->fscache;
99 errorfc(fc, "unable to register fscache cookie for fsid %pU",
145 if (!fsc->fscache)
153 if (!ci->fscache) {
158 ci->fscache = fscache_acquire_cookie(fsc->fscache,
171 if ((cookie = ci->fscache) == NULL)
174 ci->fscache = NULL;
190 if (!fscache_cookie_valid(ci->fscache))
196 fscache_disable_cookie(ci->fscache, &ci->i_vino, false);
197 fscache_uncache_all_inode_pages(ci->fscache, inode);
199 fscache_enable_cookie(ci->fscache, &ci->i_vino, i_size_read(inode),
201 if (fscache_cookie_enabled(ci->fscache)) {
222 /* Atempt to read from the fscache,
235 ret = fscache_read_or_alloc_page(ci->fscache, page,
264 ret = fscache_read_or_alloc_pages(ci->fscache, mapping, pages, nr_pages,
293 ret = fscache_write_page(ci->fscache, page, i_size_read(inode),
296 fscache_uncache_page(ci->fscache, page);
306 fscache_wait_on_page_write(ci->fscache, page);
307 fscache_uncache_page(ci->fscache, page);
312 if (fscache_cookie_valid(fsc->fscache)) {
318 if (ent->fscache == fsc->fscache) {
328 __fscache_relinquish_cookie(fsc->fscache, NULL, false);
330 fsc->fscache = NULL;
345 if (fscache_check_consistency(ci->fscache, &ci->i_vino))
346 fscache_invalidate(ci->fscache);