Lines Matching refs:fscache
69 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs()
73 if (fsc->fscache == NULL) { in ceph_fscache_register_fs()
192 if (fsc->fscache == NULL) in ceph_fscache_register_inode_cookie()
202 if (ci->fscache) in ceph_fscache_register_inode_cookie()
205 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie()
208 fscache_check_consistency(ci->fscache); in ceph_fscache_register_inode_cookie()
218 if ((cookie = ci->fscache) == NULL) in ceph_fscache_unregister_inode_cookie()
221 ci->fscache = NULL; in ceph_fscache_unregister_inode_cookie()
261 ret = fscache_read_or_alloc_page(ci->fscache, page, in ceph_readpage_from_fscache()
290 ret = fscache_read_or_alloc_pages(ci->fscache, mapping, pages, nr_pages, in ceph_readpages_from_fscache()
319 ret = fscache_write_page(ci->fscache, page, GFP_KERNEL); in ceph_readpage_to_fscache()
321 fscache_uncache_page(ci->fscache, page); in ceph_readpage_to_fscache()
331 fscache_wait_on_page_write(ci->fscache, page); in ceph_invalidate_fscache_page()
332 fscache_uncache_page(ci->fscache, page); in ceph_invalidate_fscache_page()
340 fscache_relinquish_cookie(fsc->fscache, 0); in ceph_fscache_unregister_fs()
341 fsc->fscache = NULL; in ceph_fscache_unregister_fs()
363 if (!fscache_check_consistency(ci->fscache)) in ceph_revalidate_work()
364 fscache_invalidate(ci->fscache); in ceph_revalidate_work()
382 if (fsc->revalidate_wq == NULL || ci->fscache == NULL) in ceph_queue_revalidate()
398 ci->fscache = NULL; in ceph_fscache_inode_init()