diff options
| -rw-r--r-- | arch/x86/mm/pageattr.c | 8 |
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) | |||
| 870 | return; | 870 | return; |
| 871 | 871 | ||
| 872 | /* | 872 | /* |
| 873 | * The return value is ignored - the calls cannot fail, | 873 | * The return value is ignored as the calls cannot fail. |
| 874 | * large pages are disabled at boot time: | 874 | * Large pages are kept enabled at boot time, and are |
| 875 | * split up quickly with DEBUG_PAGEALLOC. If a splitup | ||
| 876 | * fails here (due to temporary memory shortage) no damage | ||
| 877 | * is done because we just keep the largepage intact up | ||
| 878 | * to the next attempt when it will likely be split up: | ||
| 875 | */ | 879 | */ |
| 876 | if (enable) | 880 | if (enable) |
| 877 | __set_pages_p(page, numpages); | 881 | __set_pages_p(page, numpages); |
