Re: [1/2] powerpc/mm: Remove duplicated check in do_page_fault()

2016-05-09 Thread Gavin Shan
On Mon, May 09, 2016 at 08:03:50PM +1000, Michael Ellerman wrote: >On Fri, 2016-26-02 at 00:26:25 UTC, Gavin Shan wrote: >> When the page fault happened in user space, we need check it's >> caused by stack frame pointer update instruction and update >> local variable @flag with FAULT_FLAG_USER. Cur

Re: [1/2] powerpc/mm: Remove duplicated check in do_page_fault()

2016-05-09 Thread Michael Ellerman
On Fri, 2016-26-02 at 00:26:25 UTC, Gavin Shan wrote: > When the page fault happened in user space, we need check it's > caused by stack frame pointer update instruction and update > local variable @flag with FAULT_FLAG_USER. Currently, the code > has two separate check for the same condition. That