]> git.baikalelectronics.ru Git - kernel.git/commit
Make sure we copy pages inserted with "vm_insert_page()" on fork
authorLinus Torvalds <torvalds@g5.osdl.org>
Fri, 16 Dec 2005 18:21:23 +0000 (10:21 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 16 Dec 2005 18:21:23 +0000 (10:21 -0800)
commit5c2a045571d064c8ad5c517418eda2460a332176
tree9f3bdf438bcb0d5f6e723665ced23308fffb8368
parentb18c7c26aae3a7782af7649357bf61f8ba5abe70
Make sure we copy pages inserted with "vm_insert_page()" on fork

The logic that decides that a fork() might be able to avoid copying a VM
area when it can be re-created by page faults didn't know about the new
vm_insert_page() case.

Also make some things a bit more anal wrt VM_PFNMAP.

Pointed out by Hugh Dickins <hugh@veritas.com>

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/mm.h
mm/memory.c
mm/mmap.c
mm/mremap.c