]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memcg: fix last_dead_count memory wastage
authorHugh Dickins <hughd@google.com>
Thu, 23 Jan 2014 23:53:30 +0000 (15:53 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:53 +0000 (16:36 -0800)
commitd8949da3419493561aa23f4124789c39ac9261c5
tree279644e60297049e6917d80ea1b28a9dc58f692d
parent5ce2bef5876efc531424ecb147a05be5ac51e349
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>
mm/memcontrol.c