All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kirill Korotaev <dev@sw.ru>
To: Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>,
	linux-kernel@vger.kernel.org
Subject: [PATCH] mm acct accounting fix
Date: Wed, 11 May 2005 19:25:20 +0400	[thread overview]
Message-ID: <428223E0.2070200@sw.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

Sorry, forgot to write that all these patches are against 2.6.12-rc4...

This patch fixes mm->total_vm and mm->locked_vm acctounting in case
when move_page_tables() fails inside move_vma().

Signed-Off-By: Kirill Korotaev <dev@sw.ru>

[-- Attachment #2: diff-mainstream-mmacct-20050325 --]
[-- Type: text/plain, Size: 327 bytes --]

--- ./mm/mremap.c.mmacct	2005-05-10 16:10:40.000000000 +0400
+++ ./mm/mremap.c	2005-05-10 18:12:13.000000000 +0400
@@ -213,6 +213,7 @@ static unsigned long move_vma(struct vm_
 		old_len = new_len;
 		old_addr = new_addr;
 		new_addr = -ENOMEM;
+		new_len = 0;
 	}
 
 	/* Conceal VM_ACCOUNT so old reservation is not undone */

             reply	other threads:[~2005-05-11 15:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-11 15:25 Kirill Korotaev [this message]
2005-05-11 16:08 ` [PATCH] mm acct accounting fix Hugh Dickins
2005-05-12  8:00   ` Kirill Korotaev
2005-05-12 18:25     ` Hugh Dickins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=428223E0.2070200@sw.ru \
    --to=dev@sw.ru \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.