mm/memcontrol.c: fix defined but not used compiler warning
authorMichele Curti <michele.curti@gmail.com>
Sat, 13 Dec 2014 00:56:35 +0000 (16:56 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 13 Dec 2014 20:42:49 +0000 (12:42 -0800)
commitae6e71d3d900c398bdb346ac25733b2efa9b3752
tree8eaee4af96ecc4fa947e1e04204fa05d1265b5a1
parent441c228f817f7597e090d84aca74bdb7c2bd5040
mm/memcontrol.c: fix defined but not used compiler warning

test_mem_cgroup_node_reclaimable() is used only when MAX_NUMNODES > 1, so
move it into the compiler if statement

[akpm@linux-foundation.org: clean up layout]
Signed-off-by: Michele Curti <michele.curti@gmail.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