All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: update the comment in __isolate_free_page
@ 2016-06-17 13:58 ` zhongjiang
  0 siblings, 0 replies; 2+ messages in thread
From: zhongjiang @ 2016-06-17 13:58 UTC (permalink / raw)
  To: iamjoonsoo.kim, akpm; +Cc: linux-mm, linux-kernel

From: zhong jiang <zhongjiang@huawei.com>

we need to assure the code is consistent with comment. otherwise,
Freshman feel hard to learn it.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
 mm/page_alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 6903b69..3842400 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2509,7 +2509,7 @@ int __isolate_free_page(struct page *page, unsigned int order)
 
 	set_page_owner(page, order, __GFP_MOVABLE);
 
-	/* Set the pageblock if the isolated page is at least a pageblock */
+	/* Set the pageblock if the isolated page is at least half of a pageblock */
 	if (order >= pageblock_order - 1) {
 		struct page *endpage = page + (1 << order) - 1;
 		for (; page < endpage; page += pageblock_nr_pages) {
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] mm: update the comment in __isolate_free_page
@ 2016-06-17 13:58 ` zhongjiang
  0 siblings, 0 replies; 2+ messages in thread
From: zhongjiang @ 2016-06-17 13:58 UTC (permalink / raw)
  To: iamjoonsoo.kim, akpm; +Cc: linux-mm, linux-kernel

From: zhong jiang <zhongjiang@huawei.com>

we need to assure the code is consistent with comment. otherwise,
Freshman feel hard to learn it.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
 mm/page_alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 6903b69..3842400 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2509,7 +2509,7 @@ int __isolate_free_page(struct page *page, unsigned int order)
 
 	set_page_owner(page, order, __GFP_MOVABLE);
 
-	/* Set the pageblock if the isolated page is at least a pageblock */
+	/* Set the pageblock if the isolated page is at least half of a pageblock */
 	if (order >= pageblock_order - 1) {
 		struct page *endpage = page + (1 << order) - 1;
 		for (; page < endpage; page += pageblock_nr_pages) {
-- 
1.8.3.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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-17 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-17 13:58 [PATCH] mm: update the comment in __isolate_free_page zhongjiang
2016-06-17 13:58 ` zhongjiang

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.