From: Johannes Weiner <hannes@cmpxchg.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
linux-kernel@vger.kernel.org,
Nick Piggin <nickpiggin@yahoo.com.au>
Subject: Re: [PATCH] 2.6.28, vmalloc.c, vmap_page_range
Date: Sat, 27 Dec 2008 15:25:54 +0100 [thread overview]
Message-ID: <20081227142554.GA2505@cmpxchg.org> (raw)
In-Reply-To: <20081227090221.GD16077@elte.hu>
On Sat, Dec 27, 2008 at 10:02:21AM +0100, Ingo Molnar wrote:
> > > --- a/mm/vmalloc.c~vmallocc-fix-flushing-in-vmap_page_range
> > > +++ a/mm/vmalloc.c
> > > @@ -151,11 +151,12 @@ static int vmap_pud_range(pgd_t *pgd, un
> > > *
> > > * Ie. pte at addr+N*PAGE_SIZE shall point to pfn corresponding to pages[N]
> > > */
> > > -static int vmap_page_range(unsigned long addr, unsigned long end,
> > > +static int vmap_page_range(unsigned long start_addr, unsigned long end,
> > > pgprot_t prot, struct page **pages)
> > > {
> > > pgd_t *pgd;
> > > unsigned long next;
> > > + unsigned long addr = start_addr;
> >
> > Ugh, start_addr is an awful name. How about start? I know it doesn't
> > hold the same amount of information but it's a local API, the
> > pgd_offset_k() should make the unit unambiguous, it goes better with the
> > end parameter and it's unique enough for this short function.
>
> i'd like to observe that there's 449 start_addr instances in the kernel
> source, 17 of them in mm/*.c alone. So if it's 'ugly' (it isnt to me),
> this patch is not the place to start worrying about it. If you feel
> strongly about it then prepare a cleanup patch that eradicates them all,
> put your justification for why it's bad into the changelog and post it to
> lkml.
It would surely not justify such a big change.
And at least in mm/* you have them paired with `end_addr' if they
denote range start and end.
Hannes
next prev parent reply other threads:[~2008-12-27 14:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-25 21:02 [PATCH] 2.6.28, vmalloc.c, vmap_page_range Adam Lackorzynski
2008-12-27 0:39 ` Andrew Morton
2008-12-27 3:36 ` Johannes Weiner
2008-12-27 9:02 ` Ingo Molnar
2008-12-27 14:25 ` Johannes Weiner [this message]
2008-12-27 12:03 ` Adam Lackorzynski
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=20081227142554.GA2505@cmpxchg.org \
--to=hannes@cmpxchg.org \
--cc=adam@os.inf.tu-dresden.de \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=nickpiggin@yahoo.com.au \
/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