tile/mm/fault.c: Port OOM changes to handle_page_fault
Commit
a99d657f79def8aeb8b35d80bdbdeb21a5632d86
(mm: retry page fault when blocking on disk transfer) and
commit
64587d42be2d7dc67e4d8a79069c9fc7e8a0b952
(x86,mm: make pagefault killable)
The above commits introduced changes into the x86 pagefault handler
for making the page fault handler retryable as well as killable.
These changes reduce the mmap_sem hold time, which is crucial
during OOM killer invocation.
Port these changes to tile.
Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com>
[cmetcalf@tilera.com: initialize "flags" after "write" updated.]
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>