The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Paulo Marques <pmarques@grupopie.com>
To: Rik Bobbaers <Rik.Bobbaers@cc.kuleuven.be>
Cc: linux-kernel@vger.kernel.org, linux-mm@vger.kernel.org
Subject: Re: very small code cleanup
Date: Tue, 07 Nov 2006 14:43:35 +0000	[thread overview]
Message-ID: <45509B97.2080104@grupopie.com> (raw)
In-Reply-To: <4550986C.8020802@cc.kuleuven.be>

Rik Bobbaers wrote:
> hey all,
> 
> in mm/mlock.c , mm is defined as vma->vm_mm, why not use that one for 
> the decrement of pages?

Because vma can change here:

	if (*prev) {
		vma = *prev;
		goto success;
	}

and then mm won't be the same as vma->vm_mm..

-- 
Paulo Marques - www.grupopie.com

"The face of a child can say it all, especially the
mouth part of the face."

  reply	other threads:[~2006-11-07 14:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-07 14:30 very small code cleanup Rik Bobbaers
2006-11-07 14:43 ` Paulo Marques [this message]
2006-11-07 15:11   ` 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=45509B97.2080104@grupopie.com \
    --to=pmarques@grupopie.com \
    --cc=Rik.Bobbaers@cc.kuleuven.be \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox