Lines Matching refs:pool_id
115 int pool_id = CLEANCACHE_NO_BACKEND; in __cleancache_init_fs() local
118 pool_id = cleancache_ops->init_fs(PAGE_SIZE); in __cleancache_init_fs()
119 if (pool_id < 0) in __cleancache_init_fs()
120 pool_id = CLEANCACHE_NO_POOL; in __cleancache_init_fs()
122 sb->cleancache_poolid = pool_id; in __cleancache_init_fs()
129 int pool_id = CLEANCACHE_NO_BACKEND_SHARED; in __cleancache_init_shared_fs() local
132 pool_id = cleancache_ops->init_shared_fs(&sb->s_uuid, PAGE_SIZE); in __cleancache_init_shared_fs()
133 if (pool_id < 0) in __cleancache_init_shared_fs()
134 pool_id = CLEANCACHE_NO_POOL; in __cleancache_init_shared_fs()
136 sb->cleancache_poolid = pool_id; in __cleancache_init_shared_fs()
179 int pool_id; in __cleancache_get_page() local
188 pool_id = page->mapping->host->i_sb->cleancache_poolid; in __cleancache_get_page()
189 if (pool_id < 0) in __cleancache_get_page()
195 ret = cleancache_ops->get_page(pool_id, key, page->index, page); in __cleancache_get_page()
217 int pool_id; in __cleancache_put_page() local
226 pool_id = page->mapping->host->i_sb->cleancache_poolid; in __cleancache_put_page()
227 if (pool_id >= 0 && in __cleancache_put_page()
229 cleancache_ops->put_page(pool_id, key, page->index, page); in __cleancache_put_page()
247 int pool_id = mapping->host->i_sb->cleancache_poolid; in __cleancache_invalidate_page() local
253 if (pool_id >= 0) { in __cleancache_invalidate_page()
256 cleancache_ops->invalidate_page(pool_id, in __cleancache_invalidate_page()
275 int pool_id = mapping->host->i_sb->cleancache_poolid; in __cleancache_invalidate_inode() local
281 if (pool_id >= 0 && cleancache_get_key(mapping->host, &key) >= 0) in __cleancache_invalidate_inode()
282 cleancache_ops->invalidate_inode(pool_id, key); in __cleancache_invalidate_inode()
293 int pool_id; in __cleancache_invalidate_fs() local
295 pool_id = sb->cleancache_poolid; in __cleancache_invalidate_fs()
298 if (cleancache_ops && pool_id >= 0) in __cleancache_invalidate_fs()
299 cleancache_ops->invalidate_fs(pool_id); in __cleancache_invalidate_fs()