projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8f5c56
)
memcg: kill unnecessary initialization in mem_cgroup_shrink_node_zone()
author
KOSAKI Motohiro
<
[email protected]
>
Wed, 11 Aug 2010 01:03:04 +0000
(18:03 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Aug 2010 15:59:19 +0000
(08:59 -0700)
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 <
[email protected]
>
Acked-by: KAMEZAWA Hiroyuki <
[email protected]
>
Cc: Balbir Singh <
[email protected]
>
Cc: Mel Gorman <
[email protected]
>
Cc: Nishimura Daisuke <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/vmscan.c
patch
|
blob
|
history
diff --git
a/mm/vmscan.c
b/mm/vmscan.c
index 4e684449bf40e4f367133db25dd0d54a3573d7ba..291270496b6f16d0c42ded17546e81374832b768 100644
(file)
--- 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,