]> git.baikalelectronics.ru Git - kernel.git/commit
mm: compaction: do not compact pgdat for order-0
authorMel Gorman <mgorman@suse.de>
Wed, 11 Sep 2013 21:22:19 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:57:55 +0000 (15:57 -0700)
commit317cddd993ab2684fac3ab97513afb2e19184723
tree3eb938e72d7acaff416cfcd05f96b7cbf6ed9736
parent0cbbb2e082b143af99820a9ea630e23fc1ad5f6e
mm: compaction: do not compact pgdat for order-0

If kswapd was reclaiming for a high order and resets it to 0 due to
fragmentation it will still call compact_pgdat.  For the most part, this
will fail a compaction_suitable() test and not compact but it is
unnecessarily sloppy.  It could be fixed in the caller but fix it in the
API instead.

[dhillf@gmail.com: pointed out that it was a potential problem]
Signed-off-by: Mel Gorman <mgorman@suse.de>
Cc: Hillf Danton <dhillf@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/compaction.c