All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: Marcus Alanen <marcus@infa.abo.fi>
Cc: maalanen@ra.abo.fi, Andrew Morton <akpm@digeo.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [patch, 2.5] __vmalloc allocates spurious page?
Date: Tue, 15 Oct 2002 23:05:06 +0100	[thread overview]
Message-ID: <20021015230506.D7702@flint.arm.linux.org.uk> (raw)
In-Reply-To: <200210152158.AAA18031@infa.abo.fi>; from marcus@infa.abo.fi on Wed, Oct 16, 2002 at 12:58:12AM +0300

On Wed, Oct 16, 2002 at 12:58:12AM +0300, Marcus Alanen wrote:
> >The unnecessary page is allocated only if size is initially a multiple 
> >of PAGE_SIZE, which sounds like a common case.
> 
> Actually, size is already PAGE_ALIGNed, so we get the amount of pages
> even easier.

IIRC, back in the dim and distant past, the extra page was originally to
catch things running off the end of their space (eg, modules).  The
idea was that modules (and other vmalloc'd areas) would be separated
by one unmapped page.

It looks like this got broken recently though.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


  reply	other threads:[~2002-10-15 22:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-15 19:32 [patch, 2.5] __vmalloc allocates spurious page? Marcus Alanen
2002-10-15 21:58 ` Marcus Alanen
2002-10-15 22:05   ` Russell King [this message]
2002-10-15 22:11     ` William Lee Irwin III
2002-10-15 22:21     ` Andrew Morton

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=20021015230506.D7702@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maalanen@ra.abo.fi \
    --cc=marcus@infa.abo.fi \
    /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.