Commit c5a73c3d55be1faadba35b41a862e036a3b12ddb
Committed by
Linus Torvalds
1 parent
5a03b051ed
Exists in
master
and in
4 other branches
thp: use compaction for all allocation orders
It makes no sense not to enable compaction for small order pages as we don't want to end up with bad order 2 allocations and good and graceful order 9 allocations. Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
mm/compaction.c
... | ... | @@ -578,7 +578,7 @@ |
578 | 578 | * made because an assumption is made that the page allocator can satisfy |
579 | 579 | * the "cheaper" orders without taking special steps |
580 | 580 | */ |
581 | - if (order <= PAGE_ALLOC_COSTLY_ORDER || !may_enter_fs || !may_perform_io) | |
581 | + if (!order || !may_enter_fs || !may_perform_io) | |
582 | 582 | return rc; |
583 | 583 | |
584 | 584 | count_vm_event(COMPACTSTALL); |