]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm: introduce a common interface for balloon pages mobility fix
authorDavid Rientjes <rientjes@google.com>
Thu, 29 Nov 2012 03:17:24 +0000 (14:17 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:09 +0000 (16:23 +1100)
It's useful to keep memory defragmented so that all high-order page
allocations have a chance to succeed, not simply transparent hugepages.
Thus, allow balloon compaction for any system with memory compaction
enabled, which is the defconfig.

Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Rafael Aquini <aquini@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/Kconfig

index ae92dd5e786e9e7dd6fbbfa91dd8859226e18ec4..e6651c5de14f4e42a0b6455e0d0b0859f06c2680 100644 (file)
@@ -192,7 +192,7 @@ config SPLIT_PTLOCK_CPUS
 config BALLOON_COMPACTION
        bool "Allow for balloon memory compaction/migration"
        def_bool y
-       depends on TRANSPARENT_HUGEPAGE && VIRTIO_BALLOON
+       depends on COMPACTION && VIRTIO_BALLOON
        help
          Memory fragmentation introduced by ballooning might reduce
          significantly the number of 2MB contiguous memory blocks that can be