diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2016-10-07 19:57:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-07 21:46:27 -0400 |
commit | cf378319d335663b6722e74db0211b8af55049d5 (patch) | |
tree | e87f81df15b4c322098412bf1bbe7230e8c1b7ab /mm/vmscan.c | |
parent | 791cae9620e35d18df2cedf2bd444920c3ecf04a (diff) |
mm, compaction: rename COMPACT_PARTIAL to COMPACT_SUCCESS
COMPACT_PARTIAL has historically meant that compaction returned after
doing some work without fully compacting a zone. It however didn't
distinguish if compaction terminated because it succeeded in creating
the requested high-order page. This has changed recently and now we
only return COMPACT_PARTIAL when compaction thinks it succeeded, or the
high-order watermark check in compaction_suitable() passes and no
compaction needs to be done.
So at this point we can make the return value clearer by renaming it to
COMPACT_SUCCESS. The next patch will remove some redundant tests for
success where compaction just returned COMPACT_SUCCESS.
Link: http://lkml.kernel.org/r/20160810091226.6709-4-vbabka@suse.cz
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Tested-by: Lorenzo Stoakes <lstoakes@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 0fe8b7113868..981fc84e7434 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -2495,7 +2495,7 @@ static inline bool should_continue_reclaim(struct pglist_data *pgdat, | |||
2495 | continue; | 2495 | continue; |
2496 | 2496 | ||
2497 | switch (compaction_suitable(zone, sc->order, 0, sc->reclaim_idx)) { | 2497 | switch (compaction_suitable(zone, sc->order, 0, sc->reclaim_idx)) { |
2498 | case COMPACT_PARTIAL: | 2498 | case COMPACT_SUCCESS: |
2499 | case COMPACT_CONTINUE: | 2499 | case COMPACT_CONTINUE: |
2500 | return false; | 2500 | return false; |
2501 | default: | 2501 | default: |