Skip to contentSkip to conversation

mm: fix typo in comment

PATCH In review Joel Savitz 2 participants 2 messages Aug 1, 2019 Page allocator

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: fix typo in comment

Fix spelling of successful (currently spelled successfull in kernel source)

---
 include/linux/compaction.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/compaction.h +2 -2
index 9569e7c786d3..4122df65eb44 100644
@@ -38,12 +38,12 @@ enum compact_result {
 	COMPACT_CONTINUE,
 
 	/*
-	 * The full zone was compacted scanned but wasn't successfull to compact
+	 * The full zone was compacted scanned but wasn't successful to compact
 	 * suitable pages.
 	 */
 	COMPACT_COMPLETE,
 	/*
-	 * direct compaction has scanned part of the zone but wasn't successfull
+	 * direct compaction has scanned part of the zone but wasn't successful
 	 * to compact suitable pages.
 	 */
 	COMPACT_PARTIAL_SKIPPED,
Signature · 1 line
2.18.1
#1 lore raw
Quoted 2 lines · Joel Savitz

Fix spelling of successful (currently spelled successfull in kernel source)

If you're going to bother fixing the spelling, may as well fix the grammar at the same time.

include/linux/compaction.h enum compact_result { · line 43

Quoted 5 lines
include/linux/compaction.h +1 -1
 	/*
-	 * The full zone was compacted scanned but wasn't successfull to compact
+	 * The full zone was compacted scanned but wasn't successful to compact
 	 * suitable pages.
 	 */

... actually, I don't know what is meant here. Could it mean:

	/*
	 * The full zone was scanned for compaction, but didn't produce
	 * suitable pages.
	 */

include/linux/compaction.h enum compact_result { · line 47

Quoted 4 lines
include/linux/compaction.h +1 -1
 	/*
-	 * direct compaction has scanned part of the zone but wasn't successfull
+	 * direct compaction has scanned part of the zone but wasn't successful
 	 * to compact suitable pages.

* Zone compaction had to stop before scanning the full zone, and
* no suitable pages were produced.