[PATCH 0/4] Bugfix + small cleanup to populate_p[mug]d

From: Arvind Sankar
Date: Tue Mar 03 2020 - 15:54:50 EST


The first patch fixes a bug in populate_pud, which results in the
requested mapping not being completely installed if the CPU does not
support GB pages.

The next three are small cleanups.

Thanks.

Arvind Sankar (4):
x86/mm/pat: Handle no-GBPAGES case correctly in populate_pud
x86/mm/pat: Ensure that populate_pud only handles one PUD
x86/mm/pat: Propagate all errors out of populate_pud
x86/mm/pat: Make num_pages consistent in populate_{pte,pud,pgd}

arch/x86/include/asm/pgtable_types.h | 2 +-
arch/x86/mm/pat/set_memory.c | 74 +++++++++++++++++-----------
2 files changed, 45 insertions(+), 31 deletions(-)

--
2.24.1