[PATCH] mm: update the comment in __isolate_free_page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: zhong jiang <zhongjiang@xxxxxxxxxx>

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

Signed-off-by: zhong jiang <zhongjiang@xxxxxxxxxx>
---
 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@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]