dup_mmap of a VM_DONTCOPY vma forgot to lower the child's total_vm. (But no way does this account for the recent report of total_vm seen too low.)
Signed-off-by: Hugh Dickins <[EMAIL PROTECTED]> --- kernel/fork.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) --- 2.6.13-rc2-mm1/kernel/fork.c 2005-07-07 12:33:21.000000000 +0100 +++ linux/kernel/fork.c 2005-07-11 18:47:33.000000000 +0100 @@ -210,8 +210,10 @@ static inline int dup_mmap(struct mm_str struct file *file; if (mpnt->vm_flags & VM_DONTCOPY) { + long pages = vma_pages(mpnt); + mm->total_vm -= pages; __vm_stat_account(mm, mpnt->vm_flags, mpnt->vm_file, - -vma_pages(mpnt)); + -pages); continue; } charge = 0; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/