diff options
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index f03c239440ad..ece2f405187f 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1707,14 +1707,15 @@ unsigned long try_to_free_pages(struct zonelist *zonelist, int order, | |||
1707 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR | 1707 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR |
1708 | 1708 | ||
1709 | unsigned long try_to_free_mem_cgroup_pages(struct mem_cgroup *mem_cont, | 1709 | unsigned long try_to_free_mem_cgroup_pages(struct mem_cgroup *mem_cont, |
1710 | gfp_t gfp_mask, | 1710 | gfp_t gfp_mask, |
1711 | bool noswap) | 1711 | bool noswap, |
1712 | unsigned int swappiness) | ||
1712 | { | 1713 | { |
1713 | struct scan_control sc = { | 1714 | struct scan_control sc = { |
1714 | .may_writepage = !laptop_mode, | 1715 | .may_writepage = !laptop_mode, |
1715 | .may_swap = 1, | 1716 | .may_swap = 1, |
1716 | .swap_cluster_max = SWAP_CLUSTER_MAX, | 1717 | .swap_cluster_max = SWAP_CLUSTER_MAX, |
1717 | .swappiness = vm_swappiness, | 1718 | .swappiness = swappiness, |
1718 | .order = 0, | 1719 | .order = 0, |
1719 | .mem_cgroup = mem_cont, | 1720 | .mem_cgroup = mem_cont, |
1720 | .isolate_pages = mem_cgroup_isolate_pages, | 1721 | .isolate_pages = mem_cgroup_isolate_pages, |