Skip to content

Commit 63b81f9

Browse files
committed
mm/compaction: move compaction_suitable's comment to right place
jira LE-4623 Rebuild_History Non-Buildable kernel-4.18.0-553.81.1.el8_10 commit-author Hui Su <sh_def@163.com> commit 2b1a20c Since commit 837d026 ("mm/compaction: more trace to understand when/why compaction start/finish"), the comment place is not suitable. So move compaction_suitable's comment to right place. Link: https://lkml.kernel.org/r/20201116144121.GA385717@rlk Signed-off-by: Hui Su <sh_def@163.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> (cherry picked from commit 2b1a20c) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 80e0d14 commit 63b81f9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mm/compaction.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2112,13 +2112,6 @@ static enum compact_result compact_finished(struct compact_control *cc)
21122112
return ret;
21132113
}
21142114

2115-
/*
2116-
* compaction_suitable: Is this suitable to run compaction on this zone now?
2117-
* Returns
2118-
* COMPACT_SKIPPED - If there are too few free pages for compaction
2119-
* COMPACT_SUCCESS - If the allocation would succeed without compaction
2120-
* COMPACT_CONTINUE - If compaction should run now
2121-
*/
21222115
static enum compact_result __compaction_suitable(struct zone *zone, int order,
21232116
unsigned int alloc_flags,
21242117
int highest_zoneidx,
@@ -2162,6 +2155,13 @@ static enum compact_result __compaction_suitable(struct zone *zone, int order,
21622155
return COMPACT_CONTINUE;
21632156
}
21642157

2158+
/*
2159+
* compaction_suitable: Is this suitable to run compaction on this zone now?
2160+
* Returns
2161+
* COMPACT_SKIPPED - If there are too few free pages for compaction
2162+
* COMPACT_SUCCESS - If the allocation would succeed without compaction
2163+
* COMPACT_CONTINUE - If compaction should run now
2164+
*/
21652165
enum compact_result compaction_suitable(struct zone *zone, int order,
21662166
unsigned int alloc_flags,
21672167
int highest_zoneidx)

0 commit comments

Comments
 (0)