mm: memcontrol: consolidate swap controller code
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 11 Feb 2015 23:26:36 +0000 (15:26 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Feb 2015 01:06:03 +0000 (17:06 -0800)
commit21afa38eed655def15475b76681fa006c435b9de
treee0e21ba464c2337c61f7ef9aab2c5f3705ca5fb5
parent95a045f63d9868ee189fe24ee61689df5a133d5b
mm: memcontrol: consolidate swap controller code

The swap controller code is scattered all over the file.  Gather all
the code that isn't directly needed by the memory controller at the
end of the file in its own CONFIG_MEMCG_SWAP section.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Reviewed-by: Vladimir Davydov <vdavydov@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c