• Matthew Wilcox's avatar
    [PATCH] rewrite find_vma_prev · e180b535
    Matthew Wilcox authored
    For PA-RISC, we need find_vma_prev to return `prev', even if vma is NULL.
    Our stack is at the top of memory, growing upwards, so when we page fault
    we need to see prev.  For added bonus points, the code becomes simpler,
    less indented, shorter and (for me, anyway) easier to understand.  The
    code is well-tested, even on x86.  For PA and ia64 this code is called in
    the page fault handler path so it is exercised frequently.
    e180b535
mmap.c 29.5 KB