From: Andrew Morton <akpm@linux-foundation.org>
To: Dave Hansen <dave@linux.vnet.ibm.com>
Cc: akpm@linuxfoundation.org, hans.rosenfeld@amd.com,
mpm@selenic.com, linux-mm@kvack.org
Subject: Re: [v4][PATCH 1/2] pass mm into pagewalkers
Date: Wed, 11 Jun 2008 12:35:31 -0700 [thread overview]
Message-ID: <20080611123531.9279c104.akpm@linux-foundation.org> (raw)
In-Reply-To: <20080611180228.12987026@kernel>
On Wed, 11 Jun 2008 11:02:29 -0700
Dave Hansen <dave@linux.vnet.ibm.com> wrote:
>
> We need this at least for huge page detection for now.
>
> It might also come in handy for some of the other
> users.
>
Changelog fails to explain why the `walk' argument was deconstified and
I couldn't immediately work this out from the diff.
> + struct mm_walk smaps_walk = {
> + .pmd_entry = smaps_pte_range,
> + .mm = vma->vm_mm,
> + .private = &mss,
> + };
a)
> if (mm) {
> + static struct mm_walk clear_refs_walk;
> + memset(&clear_refs_walk, 0, sizeof(clear_refs_walk));
> + clear_refs_walk.pmd_entry = clear_refs_pte_range;
> + clear_refs_walk.mm = mm;
b)
where a) != b). a) looks nicer.
Please do prefer to put a blank line between end-of-locals and
start-of-code. It does improve readability.
--
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>
prev parent reply other threads:[~2008-06-11 19:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-11 18:02 Dave Hansen
2008-06-11 18:02 ` [v4][PATCH 2/2] fix large pages in pagemap Dave Hansen
2008-06-11 19:37 ` Andrew Morton
2008-06-11 19:53 ` Matt Mackall
2008-06-11 20:11 ` Andrew Morton
2008-06-11 20:21 ` Matt Mackall
2008-06-11 20:34 ` Dave Hansen
2008-06-11 20:52 ` Andrew Morton
2008-06-11 21:01 ` Rik van Riel
2008-06-11 21:23 ` Dave Hansen
2008-06-11 22:37 ` Matt Mackall
2008-06-12 21:36 ` Hugh Dickins
2008-06-12 22:35 ` Matt Mackall
2008-06-11 20:15 ` Dave Hansen
2008-06-11 19:35 ` Andrew Morton [this message]
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=20080611123531.9279c104.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=akpm@linuxfoundation.org \
--cc=dave@linux.vnet.ibm.com \
--cc=hans.rosenfeld@amd.com \
--cc=linux-mm@kvack.org \
--cc=mpm@selenic.com \
/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