]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
vmscan-limit-direct-reclaim-for-higher-order-allocations-fix
authorJohannes Weiner <jweiner@redhat.com>
Mon, 24 Oct 2011 14:54:31 +0000 (01:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:07:51 +0000 (20:07 +1100)
change comment to explain the order check

Signed-off-by: Johannes Weiner <jweiner@redhat.com>
Cc: Johannes Weiner <jweiner@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c

index 78172f16f62a61da60c4fcf3603e6a535946f6ed..1b9a027c1984499733b156240e9c5b3593330994 100644 (file)
@@ -2115,8 +2115,14 @@ static void shrink_zones(int priority, struct zonelist *zonelist,
                                continue;       /* Let kswapd poll it */
                        if (COMPACTION_BUILD) {
                                /*
-                                * If we already have plenty of memory free
-                                * for compaction, don't free any more.
+                                * If we already have plenty of memory
+                                * free for compaction, don't free any
+                                * more.  Even though compaction is
+                                * invoked for any non-zero order,
+                                * only frequent costly order
+                                * reclamation is disruptive enough to
+                                * become a noticable problem, like
+                                * transparent huge page allocations.
                                 */
                                if (sc->order > PAGE_ALLOC_COSTLY_ORDER &&
                                        (compaction_suitable(zone, sc->order) ||