Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19971
b: refs/heads/master
c: 0df420d
h: refs/heads/master
i:
  19969: 86b5617
  19967: 2ae2470
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Feb 8, 2006
1 parent 9fc2737 commit 009b9d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 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: a2dfef6947139db9b886fce510c4d0c913beb5f0
refs/heads/master: 0df420d8b6c718d9a5e37531c3a9a6804493e9f4
17 changes: 2 additions & 15 deletions trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,7 @@ static int hugetlb_cow(struct mm_struct *mm, struct vm_area_struct *vma,

if (!new_page) {
page_cache_release(old_page);

/* Logically this is OOM, not a SIGBUS, but an OOM
* could cause the kernel to go killing other
* processes which won't help the hugepage situation
* at all (?) */
return VM_FAULT_SIGBUS;
return VM_FAULT_OOM;
}

spin_unlock(&mm->page_table_lock);
Expand Down Expand Up @@ -444,15 +439,7 @@ int hugetlb_no_page(struct mm_struct *mm, struct vm_area_struct *vma,
page = alloc_huge_page(vma, address);
if (!page) {
hugetlb_put_quota(mapping);
/*
* No huge pages available. So this is an OOM
* condition but we do not want to trigger the OOM
* killer, so we return VM_FAULT_SIGBUS.
*
* A program using hugepages may fault with Bus Error
* because no huge pages are available in the cpuset, per
* memory policy or because all are in use!
*/
ret = VM_FAULT_OOM;
goto out;
}

Expand Down

0 comments on commit 009b9d8

Please sign in to comment.