lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Thu, 24 Nov 2011 10:57:54 +0800
From:	Wang Sheng-Hui <shhuiw@...il.com>
To:	mel@....ul.ie, linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: [PATCH] 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.

Signed-off-by: Wang Sheng-Hui <shhuiw@...il.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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ