From: KOSAKI Motohiro Date: Wed, 11 Aug 2010 01:03:04 +0000 (-0700) Subject: memcg: kill unnecessary initialization in mem_cgroup_shrink_node_zone() X-Git-Tag: v3.0~3723 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da280d636b83f0f5d92921c99ef5c7d7c3e751cc;p=platform%2Fkernel%2Flinux-amlogic.git memcg: kill unnecessary initialization in mem_cgroup_shrink_node_zone() sc.nr_reclaimed and sc.nr_scanned have already been initialized few lines above "struct scan_control sc = {}" statement. So, This patch remove this unnecessary code. Signed-off-by: KOSAKI Motohiro Acked-by: KAMEZAWA Hiroyuki Cc: Balbir Singh Cc: Mel Gorman Cc: Nishimura Daisuke Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 4e68444..2912704 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1985,8 +1985,6 @@ unsigned long mem_cgroup_shrink_node_zone(struct mem_cgroup *mem, sc.gfp_mask = (gfp_mask & GFP_RECLAIM_MASK) | (GFP_HIGHUSER_MOVABLE & ~GFP_RECLAIM_MASK); sc.nodemask = &nm; - sc.nr_reclaimed = 0; - sc.nr_scanned = 0; trace_mm_vmscan_memcg_softlimit_reclaim_begin(0, sc.may_writepage,