mm: vmpressure: fix backport
Change-Id: Id5582a456757db5abe9cefa690834fcd65c49792 Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
This commit is contained in:
parent
3a97e4e3dd
commit
9c4c3f1590
|
@ -95,7 +95,7 @@ static struct vmpressure *work_to_vmpressure(struct work_struct *work)
|
|||
return container_of(work, struct vmpressure, work);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_MEMCG
|
||||
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
|
||||
static struct vmpressure *cg_to_vmpressure(struct cgroup *cg)
|
||||
{
|
||||
return css_to_vmpressure(cgroup_subsys_state(cg, mem_cgroup_subsys_id));
|
||||
|
@ -325,7 +325,7 @@ void vmpressure(gfp_t gfp, struct mem_cgroup *memcg,
|
|||
if (!memcg)
|
||||
vmpressure_global(gfp, scanned, reclaimed);
|
||||
|
||||
if (IS_ENABLED(CONFIG_MEMCG))
|
||||
if (IS_ENABLED(CONFIG_CGROUP_MEM_RES_CTLR))
|
||||
vmpressure_memcg(gfp, memcg, scanned, reclaimed);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue