Browse Source

x86: cpa, fix out of date comment

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Ingo Molnar 17 năm trước cách đây
mục cha
commit
f8d8406bcb
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      arch/x86/mm/pageattr.c

+ 6 - 2
arch/x86/mm/pageattr.c

@@ -870,8 +870,12 @@ void kernel_map_pages(struct page *page, int numpages, int enable)
 		return;
 
 	/*
-	 * The return value is ignored - the calls cannot fail,
-	 * large pages are disabled at boot time:
+	 * The return value is ignored as the calls cannot fail.
+	 * Large pages are kept enabled at boot time, and are
+	 * split up quickly with DEBUG_PAGEALLOC. If a splitup
+	 * fails here (due to temporary memory shortage) no damage
+	 * is done because we just keep the largepage intact up
+	 * to the next attempt when it will likely be split up:
 	 */
 	if (enable)
 		__set_pages_p(page, numpages);