Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82913
b: refs/heads/master
c: 7b610ee
h: refs/heads/master
i:
  82911: 38fdb78
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Feb 4, 2008
1 parent 71c7c2f commit 45fad6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 87f7f8fe328388a1430a4c27cbe684f3925fd8a5
refs/heads/master: 7b610eec7a06ede64f71459e7f412dfd96f4cc5e
6 changes: 2 additions & 4 deletions trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ static void __set_pmd_pte(pte_t *kpte, unsigned long address, pte_t pte)
if (!SHARED_KERNEL_PMD) {
struct page *page;

address = __pa(address);
list_for_each_entry(page, &pgd_list, lru) {
pgd_t *pgd;
pud_t *pud;
Expand Down Expand Up @@ -351,7 +352,7 @@ try_preserve_large_page(pte_t *kpte, unsigned long address,

static int split_large_page(pte_t *kpte, unsigned long address)
{
unsigned long flags, addr, pfn, pfninc = 1;
unsigned long flags, pfn, pfninc = 1;
gfp_t gfp_flags = GFP_KERNEL;
unsigned int i, level;
pte_t *pbase, *tmp;
Expand All @@ -374,8 +375,6 @@ static int split_large_page(pte_t *kpte, unsigned long address)
if (tmp != kpte)
goto out_unlock;

address = __pa(address);
addr = address & PMD_PAGE_MASK;
pbase = (pte_t *)page_address(base);
#ifdef CONFIG_X86_32
paravirt_alloc_pt(&init_mm, page_to_pfn(base));
Expand All @@ -386,7 +385,6 @@ static int split_large_page(pte_t *kpte, unsigned long address)
if (level == PG_LEVEL_1G) {
pfninc = PMD_PAGE_SIZE >> PAGE_SHIFT;
pgprot_val(ref_prot) |= _PAGE_PSE;
addr &= PUD_PAGE_MASK;
}
#endif

Expand Down

0 comments on commit 45fad6e

Please sign in to comment.