Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345058
b: refs/heads/master
c: a4f1de1
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Dec 17, 2012
1 parent fb4c298 commit b4cbffc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 2dfea3803dcf70983d14ce1dcbb3e97a7459a28b
refs/heads/master: a4f1de176614f634c367e5994a7bcc428c940df0
6 changes: 3 additions & 3 deletions trunk/mm/huge_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -1460,9 +1460,10 @@ int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd,
if (__pmd_trans_huge_lock(pmd, vma) == 1) {
pmd_t entry;
entry = pmdp_get_and_clear(mm, addr, pmd);
if (!prot_numa)
if (!prot_numa) {
entry = pmd_modify(entry, newprot);
else {
BUG_ON(pmd_write(entry));
} else {
struct page *page = pmd_page(*pmd);

/* only check non-shared pages */
Expand All @@ -1471,7 +1472,6 @@ int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd,
entry = pmd_mknuma(entry);
}
}
BUG_ON(pmd_write(entry));
set_pmd_at(mm, addr, pmd, entry);
spin_unlock(&vma->vm_mm->page_table_lock);
ret = 1;
Expand Down

0 comments on commit b4cbffc

Please sign in to comment.