Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135587
b: refs/heads/master
c: 59fa439
h: refs/heads/master
i:
  135585: c6476c4
  135583: 7731bfe
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Mar 26, 2009
1 parent 68b2195 commit fa5b7ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 27 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: 099b765139929efdcf232f8870804accf8c4cdc5
refs/heads/master: 59fa4392dddae244a1148cbbcb090b5a5728f576
28 changes: 2 additions & 26 deletions trunk/arch/s390/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,29 +200,6 @@ static void do_low_address(struct pt_regs *regs, unsigned long error_code)
do_no_context(regs, error_code, 0);
}

/*
* We ran out of memory, or some other thing happened to us that made
* us unable to handle the page fault gracefully.
*/
static int do_out_of_memory(struct pt_regs *regs, unsigned long error_code,
unsigned long address)
{
struct task_struct *tsk = current;
struct mm_struct *mm = tsk->mm;

up_read(&mm->mmap_sem);
if (is_global_init(tsk)) {
yield();
down_read(&mm->mmap_sem);
return 1;
}
printk("VM: killing process %s\n", tsk->comm);
if (regs->psw.mask & PSW_MASK_PSTATE)
do_group_exit(SIGKILL);
do_no_context(regs, error_code, address);
return 0;
}

static void do_sigbus(struct pt_regs *regs, unsigned long error_code,
unsigned long address)
{
Expand Down Expand Up @@ -367,7 +344,6 @@ do_exception(struct pt_regs *regs, unsigned long error_code, int write)
goto bad_area;
}

survive:
if (is_vm_hugetlb_page(vma))
address &= HPAGE_MASK;
/*
Expand All @@ -378,8 +354,8 @@ do_exception(struct pt_regs *regs, unsigned long error_code, int write)
fault = handle_mm_fault(mm, vma, address, write);
if (unlikely(fault & VM_FAULT_ERROR)) {
if (fault & VM_FAULT_OOM) {
if (do_out_of_memory(regs, error_code, address))
goto survive;
up_read(&mm->mmap_sem);
pagefault_out_of_memory();
return;
} else if (fault & VM_FAULT_SIGBUS) {
do_sigbus(regs, error_code, address);
Expand Down

0 comments on commit fa5b7ef

Please sign in to comment.