Lines Matching defs:test_pool
221 struct dmem_cgroup_pool_state *test_pool)
248 if (found_pool == test_pool)
255 * dmem_cgroup_state_evict_valuable() - Check if we should evict from test_pool
257 * @test_pool: The pool for which to test
261 * This function returns true if we can evict from @test_pool, false if not.
269 struct dmem_cgroup_pool_state *test_pool,
272 struct dmem_cgroup_pool_state *pool = test_pool;
277 if (limit_pool == test_pool)
284 for (pool = test_pool; pool && limit_pool != pool; pool = pool_parent(pool))
294 for (limit_pool = test_pool; pool_parent(limit_pool); limit_pool = pool_parent(limit_pool))
298 ctest = &test_pool->cnt;
300 dmem_cgroup_calculate_protection(limit_pool, test_pool);