Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75662
b: refs/heads/master
c: c5c9942
h: refs/heads/master
v: v3
  • Loading branch information
Larry Woodman authored and Linus Torvalds committed Jan 24, 2008
1 parent 83a52f4 commit a5be8ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2f3dabefa73fe3307578553f456e93f0a1bca08
refs/heads/master: c5c99429fa57dcf6e05203ebe3676db1ec646793
5 changes: 5 additions & 0 deletions trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,11 @@ int copy_hugetlb_page_range(struct mm_struct *dst, struct mm_struct *src,
dst_pte = huge_pte_alloc(dst, addr);
if (!dst_pte)
goto nomem;

/* If the pagetables are shared don't copy or take references */
if (dst_pte == src_pte)
continue;

spin_lock(&dst->page_table_lock);
spin_lock(&src->page_table_lock);
if (!pte_none(*src_pte)) {
Expand Down

0 comments on commit a5be8ca

Please sign in to comment.