linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Martin Bligh <mbligh@google.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: Andrew Morton <akpm@osdl.org>,
	Linux Memory Management <linux-mm@kvack.org>
Subject: Re: zoned-vm-stats-add-nr_anon.patch
Date: Tue, 20 Jun 2006 13:53:42 -0700	[thread overview]
Message-ID: <44986056.5040300@google.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0606201347470.12229@schroedinger.engr.sgi.com>

Christoph Lameter wrote:
> On Tue, 20 Jun 2006, Martin Bligh wrote:
> 
> 
>>Could we rename nr_mapped to something else if we're going to change
>>it's meaning? Perhaps split nr_mapped into nr_mapped_file and
>>nr_mapped_anon or something?
> 
> 
> Yes we did that. nr_mapped was split into NR_MAPPED and NR_ANON. Please 
> read the description for V4 if this patchset that was posted last week.

Yeah, but ... that's what I'm concerned about, the naming of it.
Splitting it makes sense, just needs to be renamed something else, I think.

>>In my mind, "nr_mapped" is a good name for the number of pages which
>>are mapped, so excluding the anon pages from that seems to make
>>the naming non-obvious. similarly, I presume we can have anon pages
>>on transition to or from swap that are not mapped, and yet will
>>not be reflected here, so nr_anon doesn't seem like a wholly
> 
> The same confusion exist for nr_dirty. Should we also rename nr_dirty to 
> nr_dirty_file?

Sure. Naming is important, IMHO. People reading code make involuntary
assumptions as they read code, it's inevitable.

M.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2006-06-20 20:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-20 20:46 zoned-vm-stats-add-nr_anon.patch Martin Bligh
2006-06-20 20:49 ` zoned-vm-stats-add-nr_anon.patch Christoph Lameter
2006-06-20 20:53   ` Martin Bligh [this message]
2006-06-20 20:57     ` zoned-vm-stats-add-nr_anon.patch Christoph Lameter
2006-06-20 20:58       ` zoned-vm-stats-add-nr_anon.patch Martin Bligh

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=44986056.5040300@google.com \
    --to=mbligh@google.com \
    --cc=akpm@osdl.org \
    --cc=clameter@sgi.com \
    --cc=linux-mm@kvack.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