projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm: fix ENOSPC returned by handle_mm_fault()
[deliverable/linux.git]
/
mm
/
hugetlb.c
diff --git
a/mm/hugetlb.c
b/mm/hugetlb.c
index f33bb319b73f093ce38e828a265b24d9c18e0525..6402458fee38ca5ba2109882e92ebbf63e97c787 100644
(file)
--- a/
mm/hugetlb.c
+++ b/
mm/hugetlb.c
@@
-1033,10
+1033,10
@@
static struct page *alloc_huge_page(struct vm_area_struct *vma,
*/
chg = vma_needs_reservation(h, vma, addr);
if (chg < 0)
*/
chg = vma_needs_reservation(h, vma, addr);
if (chg < 0)
- return ERR_PTR(
chg
);
+ return ERR_PTR(
-VM_FAULT_OOM
);
if (chg)
if (hugetlb_get_quota(inode->i_mapping, chg))
if (chg)
if (hugetlb_get_quota(inode->i_mapping, chg))
- return ERR_PTR(-
ENOSPC
);
+ return ERR_PTR(-
VM_FAULT_SIGBUS
);
spin_lock(&hugetlb_lock);
page = dequeue_huge_page_vma(h, vma, addr, avoid_reserve);
spin_lock(&hugetlb_lock);
page = dequeue_huge_page_vma(h, vma, addr, avoid_reserve);
This page took
0.035626 seconds
and
5
git commands to generate.