All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wang Sheng-Hui <shhuiw@gmail.com>
To: mel@csn.ul.ie, linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: [PATCH] cleanup comment in include/linux/compaction.h for defer_compaction
Date: Thu, 24 Nov 2011 10:57:54 +0800	[thread overview]
Message-ID: <4ECDB2B2.2000206@gmail.com> (raw)

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.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
---
 include/linux/compaction.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/compaction.h b/include/linux/compaction.h
index cc9f7a4..b297a9c 100644
--- a/include/linux/compaction.h
+++ b/include/linux/compaction.h
@@ -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)
 {
-- 
1.7.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  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:"dont@kvack.org"> email@kvack.org </a>

WARNING: multiple messages have this Message-ID (diff)
From: Wang Sheng-Hui <shhuiw@gmail.com>
To: mel@csn.ul.ie, linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: [PATCH] cleanup comment in include/linux/compaction.h for defer_compaction
Date: Thu, 24 Nov 2011 10:57:54 +0800	[thread overview]
Message-ID: <4ECDB2B2.2000206@gmail.com> (raw)

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.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
---
 include/linux/compaction.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/compaction.h b/include/linux/compaction.h
index cc9f7a4..b297a9c 100644
--- a/include/linux/compaction.h
+++ b/include/linux/compaction.h
@@ -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)
 {
-- 
1.7.1


             reply	other threads:[~2011-11-24  2:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-24  2:57 Wang Sheng-Hui [this message]
2011-11-24  2:57 ` [PATCH] cleanup comment in include/linux/compaction.h for defer_compaction Wang Sheng-Hui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ECDB2B2.2000206@gmail.com \
    --to=shhuiw@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mel@csn.ul.ie \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.