aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2014-01-23 18:53:30 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-23 19:36:53 -0500
commitd2ab70aaae74456ed608740915dc82ef52291f69 (patch)
tree279644e60297049e6917d80ea1b28a9dc58f692d /mm/memcontrol.c
parenta64fb3cd610c8e6806512dbac63f3fc45812d8fd (diff)
mm/memcg: fix last_dead_count memory wastage
Shorten mem_cgroup_reclaim_iter.last_dead_count from unsigned long to int: it's assigned from an int and compared with an int, and adjacent to an unsigned int: so there's no point to it being unsigned long, which wasted 104 bytes in every mem_cgroup_per_zone. Signed-off-by: Hugh Dickins <hughd@google.com> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r--mm/memcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index c8715056e1ef..aa66cc4c9e79 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -149,7 +149,7 @@ struct mem_cgroup_reclaim_iter {
149 * matches memcg->dead_count of the hierarchy root group. 149 * matches memcg->dead_count of the hierarchy root group.
150 */ 150 */
151 struct mem_cgroup *last_visited; 151 struct mem_cgroup *last_visited;
152 unsigned long last_dead_count; 152 int last_dead_count;
153 153
154 /* scan generation, increased every round-trip */ 154 /* scan generation, increased every round-trip */
155 unsigned int generation; 155 unsigned int generation;