Skip to contentSkip to conversation

cleanup comment in include/linux/compaction.h for defer_compaction

PATCH New Wang Sheng-Hui 1 participant 1 message Nov 24, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cleanup comment in include/linux/compaction.h for defer_compaction

No compact_defer_limit is found in kernel source code. Per the code implementation, compact_defer_limit should be zone->compact_defer_shift. Cleanup the comment.

---
 include/linux/compaction.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/linux/compaction.h +2 -2
index cc9f7a4..b297a9c 100644
@@ -32,8 +32,8 @@ extern unsigned long compact_zone_order(struct zone *zone, int order,
 
 /*
  * Compaction is deferred when compaction fails to result in a page
- * allocation success. 1 << compact_defer_limit compactions are skipped up
- * to a limit of 1 << COMPACT_MAX_DEFER_SHIFT
+ * allocation success. 1 << zone->compact_defer_shift compactions are
+ * skipped up to a limit of 1 << COMPACT_MAX_DEFER_SHIFT
  */
 static inline void defer_compaction(struct zone *zone)
 {
Signature · 8 lines
1.7.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>