]> git.hungrycats.org Git - linux/commit
[PATCH] Unaccount VM_DONTCOPY vmas properly
authorWilliam Lee Irwin III <wli@holomorphy.com>
Fri, 27 Aug 2004 03:37:01 +0000 (20:37 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 27 Aug 2004 03:37:01 +0000 (20:37 -0700)
commitbc5184b165b855bb02e22e0b09cf195b3e37059e
tree88c2d8ffa5421ea3d2172aa54ac0b20ef086b784
parent591e0fdbb3df665e5f7671858a94e6dfe2155d2b
[PATCH] Unaccount VM_DONTCOPY vmas properly

Unaccount VM_DONTCOPY vmas properly; the child inherits the whole of the
parent's virtual accounting from the memcpy() in copy_mm(), but the
VM_DONTCOPY check here is where a decision is made for the child not to
inherit the vmas corresponding to some accounted memory usages.  Hence,
unaccount them when skipping over them here.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/fork.c