]> git.neil.brown.name Git - history.git/commit
[PATCH] rewrite find_vma_prev
authorMatthew Wilcox <willy@debian.org>
Tue, 2 Jul 2002 04:58:30 +0000 (21:58 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 2 Jul 2002 04:58:30 +0000 (21:58 -0700)
commite180b53599bcf6a7824344adabdfdef8e5971c3c
tree9023672b88d64bad8b7bbaf6d498e8f5104e395a
parent5daf6d5d739c802ca7d782e939631a832b71a961
[PATCH] rewrite find_vma_prev

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.
mm/mmap.c