diff options
author | Andy Lutomirski <luto@kernel.org> | 2016-07-23 12:59:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-07-23 15:17:10 -0400 |
commit | 55920d31f1e3fea06702c74271dd56c4fc9b70ca (patch) | |
tree | 6057c2e50839c455f9c159db6ea98b6796d67968 /arch/x86/mm | |
parent | 530dd8d4b9daf77e3e5d145a26210d91ced954c7 (diff) |
x86/mm/cpa: Add missing comment in populate_pdg()
In commit:
21cbc2822aa1 ("x86/mm/cpa: Unbreak populate_pgd(): stop trying to deallocate failed PUDs")
I intended to add this comment, but I failed at using git.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/242baf8612394f4e31216f96d13c4d2e9b90d1b7.1469293159.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/pageattr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 2bc6ea153f76..47870a534877 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -1091,6 +1091,11 @@ static int populate_pgd(struct cpa_data *cpa, unsigned long addr) | |||
1091 | 1091 | ||
1092 | ret = populate_pud(cpa, addr, pgd_entry, pgprot); | 1092 | ret = populate_pud(cpa, addr, pgd_entry, pgprot); |
1093 | if (ret < 0) { | 1093 | if (ret < 0) { |
1094 | /* | ||
1095 | * Leave the PUD page in place in case some other CPU or thread | ||
1096 | * already found it, but remove any useless entries we just | ||
1097 | * added to it. | ||
1098 | */ | ||
1094 | unmap_pud_range(pgd_entry, addr, | 1099 | unmap_pud_range(pgd_entry, addr, |
1095 | addr + (cpa->numpages << PAGE_SHIFT)); | 1100 | addr + (cpa->numpages << PAGE_SHIFT)); |
1096 | return ret; | 1101 | return ret; |