* [TRIVIAL] Trivial patch in the bootmem allocator
@ 2002-09-13 13:38 Juan M. de la Torre
0 siblings, 0 replies; only message in thread
From: Juan M. de la Torre @ 2002-09-13 13:38 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-13 13:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-13 13:38 [TRIVIAL] Trivial patch in the bootmem allocator Juan M. de la Torre
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.