提交 84711d4e 编写于 作者: L Lu Jialin 提交者: Zheng Zengkai

Revert "cgroup: fix compile error when CONFIG_MEMCG = n"

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4IMAK
CVE: NA

-------------------------------

This reverts commit 58824c83.
Signed-off-by: NLu Jialin <lujialin4@huawei.com>
Reviewed-by: NXiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 bb8eea99
......@@ -2839,7 +2839,6 @@ static inline bool should_continue_reclaim(struct pglist_data *pgdat,
static bool is_memcg_kswapd_stopped(struct scan_control *sc)
{
#ifdef CONFIG_MEMCG
struct mem_cgroup *memcg = sc->target_mem_cgroup;
bool is_stop = false;
unsigned long stop_flag = 0;
......@@ -2855,9 +2854,6 @@ static bool is_memcg_kswapd_stopped(struct scan_control *sc)
is_stop = page_counter_read(&memcg->memory) < stop_flag;
return (current_is_kswapd() && is_stop);
#else
return false;
#endif
}
static void shrink_node_memcgs(pg_data_t *pgdat, struct scan_control *sc)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册