summaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-04-10 15:22:30 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-04-12 17:54:11 -0700
commit287d97ac032136724143cde8d5964b414d562ee3 (patch)
treec060c9b3e9fd61507687a419a94c659425de57e4 /mm/rmap.c
parentd0e9fe1758f222f13ec893f856552d81a10d266d (diff)
downloadlinux-287d97ac032136724143cde8d5964b414d562ee3.tar.bz2
vma_adjust: fix the copying of anon_vma chains
When we move the boundaries between two vma's due to things like mprotect, we need to make sure that the anon_vma of the pages that got moved from one vma to another gets properly copied around. And that was not always the case, in this rather hard-to-follow code sequence. Clarify the code, and fix it so that it copies the anon_vma from the right source. Reviewed-by: Rik van Riel <riel@redhat.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Tested-by: Borislav Petkov <bp@alien8.de> [ "Yeah, not so much this one either" ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/rmap.c')
0 files changed, 0 insertions, 0 deletions