Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80463
b: refs/heads/master
c: 895bdc2
h: refs/heads/master
i:
  80461: 9b3a7ed
  80459: 71dc393
  80455: c23b133
  80447: ab401c1
v: v3
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Jan 30, 2008
1 parent 92c22e6 commit 8684268
Show file tree
Hide file tree
Showing 3 changed files with 5 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: 3c868823413d76bdd80c643603be8ab09dcb4d65
refs/heads/master: 895bdc29956e5c9e9e101b2b1c2f0ed34130f945
4 changes: 2 additions & 2 deletions trunk/arch/x86/mm/pageattr_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static int __change_page_attr(struct page *page, pgprot_t prot)
BUG_ON(PageCompound(kpte_page));

if (pgprot_val(prot) != pgprot_val(PAGE_KERNEL)) {
if (!pte_huge(*kpte)) {
if (level == 3) {
set_pte_atomic(kpte, mk_pte(page, prot));
} else {
struct page *split;
Expand All @@ -190,7 +190,7 @@ static int __change_page_attr(struct page *page, pgprot_t prot)
}
page_private(kpte_page)++;
} else {
if (!pte_huge(*kpte)) {
if (level == 3) {
set_pte_atomic(kpte, mk_pte(page, PAGE_KERNEL));
BUG_ON(page_private(kpte_page) == 0);
page_private(kpte_page)--;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/mm/pageattr_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ __change_page_attr(unsigned long address, unsigned long pfn, pgprot_t prot,
BUG_ON(PageLRU(kpte_page));
BUG_ON(PageCompound(kpte_page));
if (pgprot_val(prot) != pgprot_val(ref_prot)) {
if (!pte_huge(*kpte)) {
if (level == 4) {
set_pte(kpte, pfn_pte(pfn, prot));
} else {
/*
Expand All @@ -172,7 +172,7 @@ __change_page_attr(unsigned long address, unsigned long pfn, pgprot_t prot,
}
page_private(kpte_page)++;
} else {
if (!pte_huge(*kpte)) {
if (level == 4) {
set_pte(kpte, pfn_pte(pfn, ref_prot));
BUG_ON(page_private(kpte_page) == 0);
page_private(kpte_page)--;
Expand Down

0 comments on commit 8684268

Please sign in to comment.