Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282999
b: refs/heads/master
c: a734bcc
h: refs/heads/master
i:
  282997: 528e9f6
  282995: 2ea35dd
  282991: 63956d6
v: v3
  • Loading branch information
Hillf Danton authored and Linus Torvalds committed Jan 11, 2012
1 parent d735b9e commit 0e3c73d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 5f8aefd44e64ed2f6950a1dcc77309b7dd9979f4
refs/heads/master: a734bcc812146cfba530e1adaf609fce1357982e
9 changes: 8 additions & 1 deletion trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2408,7 +2408,14 @@ static int hugetlb_cow(struct mm_struct *mm, struct vm_area_struct *vma,
BUG_ON(page_count(old_page) != 1);
BUG_ON(huge_pte_none(pte));
spin_lock(&mm->page_table_lock);
goto retry_avoidcopy;
ptep = huge_pte_offset(mm, address & huge_page_mask(h));
if (likely(pte_same(huge_ptep_get(ptep), pte)))
goto retry_avoidcopy;
/*
* race occurs while re-acquiring page_table_lock, and
* our job is done.
*/
return 0;
}
WARN_ON_ONCE(1);
}
Expand Down

0 comments on commit 0e3c73d

Please sign in to comment.