diff options
| author | Paul Mackerras <paulus@samba.org> | 2006-02-06 18:43:36 -0500 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2006-02-06 18:43:36 -0500 |
| commit | 6cb6524d90b6e5497e79a1474bdb2f26755d1c02 (patch) | |
| tree | fd475ac8f57a6bd39c976056324d1bc79d11b4c9 /mm/hugetlb.c | |
| parent | 837e9594fc3cb9a06bddd7ecf66151334a2e13d2 (diff) | |
| parent | 410c05427a69f53851637ccb85c2212131409fbd (diff) | |
Merge ../linux-2.6
Diffstat (limited to 'mm/hugetlb.c')
| -rw-r--r-- | mm/hugetlb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index b21d78c941b5..ceb3ebb3c399 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c | |||
| @@ -444,6 +444,15 @@ retry: | |||
| 444 | page = alloc_huge_page(vma, address); | 444 | page = alloc_huge_page(vma, address); |
| 445 | if (!page) { | 445 | if (!page) { |
| 446 | hugetlb_put_quota(mapping); | 446 | hugetlb_put_quota(mapping); |
| 447 | /* | ||
| 448 | * No huge pages available. So this is an OOM | ||
| 449 | * condition but we do not want to trigger the OOM | ||
| 450 | * killer, so we return VM_FAULT_SIGBUS. | ||
| 451 | * | ||
| 452 | * A program using hugepages may fault with Bus Error | ||
| 453 | * because no huge pages are available in the cpuset, per | ||
| 454 | * memory policy or because all are in use! | ||
| 455 | */ | ||
| 447 | goto out; | 456 | goto out; |
| 448 | } | 457 | } |
| 449 | 458 | ||
