All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Juan M. de la Torre" <jmtorre@gmx.net>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: linux-kernel@vger.kernel.org
Subject: [TRIVIAL] Trivial patch in the bootmem allocator
Date: Fri, 13 Sep 2002 15:38:55 +0200	[thread overview]
Message-ID: <20020913133855.GA623@apocalipsis> (raw)


 If the requested align is PAGE_SIZE, it is impossible to merge with the
previous allocation request, because the allocated area must begin in a
page boundary.

Regards,
Juanma

--- linux/mm/bootmem.c.orig     Fri Sep 13 15:23:22 2002
+++ linux/mm/bootmem.c  Fri Sep 13 15:24:31 2002
@@ -205,7 +205,7 @@
         * of this allocation's buffer? If yes then we can 'merge'
         * the previous partial page with this allocation.
         */
-       if (align <= PAGE_SIZE
+       if (align < PAGE_SIZE
            && bdata->last_offset && bdata->last_pos+1 == start) {
                offset = (bdata->last_offset+align-1) & ~(align-1);
                if (offset > PAGE_SIZE)

 
-- 
/jm


                 reply	other threads:[~2002-09-13 13:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20020913133855.GA623@apocalipsis \
    --to=jmtorre@gmx.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /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.