提交 072eaa5d 编写于 作者: C Christoph Lameter 提交者: Linus Torvalds

[PATCH] vmscan: remove duplicate increment of reclaim_in_progress

shrink_zone() already increments reclaim_in_progress.  No need to do it in
balance_pgdat.
Signed-off-by: NChristoph Lameter <clameter@sgi.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 80e43426
......@@ -1614,9 +1614,7 @@ static int balance_pgdat(pg_data_t *pgdat, int nr_pages, int order)
sc.nr_reclaimed = 0;
sc.priority = priority;
sc.swap_cluster_max = nr_pages? nr_pages : SWAP_CLUSTER_MAX;
atomic_inc(&zone->reclaim_in_progress);
shrink_zone(zone, &sc);
atomic_dec(&zone->reclaim_in_progress);
reclaim_state->reclaimed_slab = 0;
nr_slab = shrink_slab(sc.nr_scanned, GFP_KERNEL,
lru_pages);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册