mm: make the vma list be doubly linked
commit159e767472c7febb546db582327ff8bc14c06b98
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 Aug 2010 23:24:55 +0000 (20 16:24 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:43:37 +0000 (26 16:43 -0700)
tree628e987684c2d07a2d7c01f89ac65dda7c9120de
parentfbc69b9c7dae031359253e8c2ba31ea9c72172a2
mm: make the vma list be doubly linked

commit 297c5eee372478fc32fec5fe8eed711eedb13f3d upstream.

It's a really simple list, and several of the users want to go backwards
in it to find the previous vma.  So rather than have to look up the
previous entry with 'find_vma_prev()' or something similar, just make it
doubly linked instead.

Tested-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/mm_types.h
kernel/fork.c
mm/mmap.c
mm/nommu.c