]> git.baikalelectronics.ru Git - kernel.git/commit
mm/compaction.c: fix deferring compaction mistake
authorMinchan Kim <minchan@kernel.org>
Tue, 21 Aug 2012 23:16:03 +0000 (16:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 21 Aug 2012 23:45:03 +0000 (16:45 -0700)
commit06d28dc02acd12b01efc90e89fa844489b4a6cc0
tree5f25b6a2220c5e358e278681d6edc734b87288c3
parent058c37d3b77df8f8981b5ba3b80368ba00613920
mm/compaction.c: fix deferring compaction mistake

Commit cb627f6e078a ("vmscan: only defer compaction for failed order and
higher") fixed bad deferring policy but made mistake about checking
compact_order_failed in __compact_pgdat().  So it can't update
compact_order_failed with the new order.  This ends up preventing
correct operation of policy deferral.  This patch fixes it.

Signed-off-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Rik van Riel <riel@redhat.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/compaction.c