Skip to content

Commit

Permalink
mm: vmpressure: fix backport
Browse files Browse the repository at this point in the history
Change-Id: I26f4303038ccedff56211f2b11250760e5a84ad8
  • Loading branch information
nardholio authored and nilac8991 committed Oct 22, 2015
1 parent 4c46119 commit 39b271f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/vmpressure.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,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));
Expand Down Expand Up @@ -351,7 +351,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);
}

Expand Down

0 comments on commit 39b271f

Please sign in to comment.