diff options
author | zhong jiang <zhongjiang@huawei.com> | 2016-07-28 18:45:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-28 19:07:41 -0400 |
commit | 400bc7fd4fa7d33c96d836e6b65eeed246f1959a (patch) | |
tree | a86dc157557715af3cfe61f98a1c8863e9633052 /mm/page_alloc.c | |
parent | 091f362c53c24ca9751727a699d63e50528c306b (diff) |
mm: update the comment in __isolate_free_page
We need to assure the comment is consistent with the code.
[akpm@linux-foundation.org: coding-style fixes]
Link: http://lkml.kernel.org/r/1466171914-21027-1-git-send-email-zhongjiang@huawei.com
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 452513bf02ce..b6d38b1c1cdb 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2517,7 +2517,10 @@ int __isolate_free_page(struct page *page, unsigned int order) | |||
2517 | zone->free_area[order].nr_free--; | 2517 | zone->free_area[order].nr_free--; |
2518 | rmv_page_order(page); | 2518 | rmv_page_order(page); |
2519 | 2519 | ||
2520 | /* Set the pageblock if the isolated page is at least a pageblock */ | 2520 | /* |
2521 | * Set the pageblock if the isolated page is at least half of a | ||
2522 | * pageblock | ||
2523 | */ | ||
2521 | if (order >= pageblock_order - 1) { | 2524 | if (order >= pageblock_order - 1) { |
2522 | struct page *endpage = page + (1 << order) - 1; | 2525 | struct page *endpage = page + (1 << order) - 1; |
2523 | for (; page < endpage; page += pageblock_nr_pages) { | 2526 | for (; page < endpage; page += pageblock_nr_pages) { |