]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: make the vma list be doubly linked
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 Aug 2010 23:24:55 +0000 (16:24 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:41:44 +0000 (16:41 -0700)
commit378776c287c66b32ff9a62c34a9715f702dc336e
treec259512f7f1a92343e1122cc10b81d97adc32431
parentd1a2ec482cff1d98c366a40b717dfd95a1a0fac5
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