aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-02-13 14:09:53 +0100
committerIngo Molnar <mingo@elte.hu>2008-02-14 23:30:21 +0100
commitf8d8406bcb58ff70e97b71c35ff5be90c54fc3d0 (patch)
tree713a071b870cf773fb0864a9b4523c74258fa10a /arch
parentKVM is not seen under X86 config with latest git (32 bit compile) (diff)
downloadlinux-dev-f8d8406bcb58ff70e97b71c35ff5be90c54fc3d0.tar.xz
linux-dev-f8d8406bcb58ff70e97b71c35ff5be90c54fc3d0.zip
x86: cpa, fix out of date comment
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/mm/pageattr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
index 5d2259468d3c..4119379f80ff 100644
--- a/arch/x86/mm/pageattr.c
+++ b/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);