Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362595
b: refs/heads/master
c: 9cc3a5b
h: refs/heads/master
i:
  362593: 451ee88
  362591: 9272f78
v: v3
  • Loading branch information
Naoya Horiguchi authored and Linus Torvalds committed Apr 17, 2013
1 parent 87eca9c commit dd0bd6a
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 23d9e482136e31c9d287633a6e473daa172767c4
refs/heads/master: 9cc3a5bd40067b9a0fbd49199d0780463fc2140f
12 changes: 11 additions & 1 deletion trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2961,7 +2961,17 @@ long follow_hugetlb_page(struct mm_struct *mm, struct vm_area_struct *vma,
break;
}

if (absent ||
/*
* We need call hugetlb_fault for both hugepages under migration
* (in which case hugetlb_fault waits for the migration,) and
* hwpoisoned hugepages (in which case we need to prevent the
* caller from accessing to them.) In order to do this, we use
* here is_swap_pte instead of is_hugetlb_entry_migration and
* is_hugetlb_entry_hwpoisoned. This is because it simply covers
* both cases, and because we can't follow correct pages
* directly from any kind of swap entries.
*/
if (absent || is_swap_pte(huge_ptep_get(pte)) ||
((flags & FOLL_WRITE) && !pte_write(huge_ptep_get(pte)))) {
int ret;

Expand Down

0 comments on commit dd0bd6a

Please sign in to comment.