All of lore.kernel.org
 help / color / mirror / Atom feed
* PATCH: wrong number of kbytes reported in freeing initrd
@ 2001-07-19 23:53 Jun Sun
  0 siblings, 0 replies; only message in thread
From: Jun Sun @ 2001-07-19 23:53 UTC (permalink / raw)
  To: linux-mips


... a pretty much self-explanatory patch.

Jun

diff -Nru linux/arch/mips/mm/init.c.orig linux/arch/mips/mm/init.c
--- linux/arch/mips/mm/init.c.orig      Tue Mar 27 14:03:35 2001
+++ linux/arch/mips/mm/init.c   Thu Jul 19 16:39:31 2001
@@ -332,13 +332,14 @@
 #ifdef CONFIG_BLK_DEV_INITRD
 void free_initrd_mem(unsigned long start, unsigned long end)
 {
+       unsigned long start1 = start;
        for (; start < end; start += PAGE_SIZE) {
                ClearPageReserved(virt_to_page(start));
                set_page_count(virt_to_page(start), 1);
                free_page(start);
                totalram_pages++;
        }
-       printk ("Freeing initrd memory: %ldk freed\n", (end - start) >> 10);
+       printk ("Freeing initrd memory: %ldk freed\n", (end - start1) >> 10);
 }
 #endif

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-19 23:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-19 23:53 PATCH: wrong number of kbytes reported in freeing initrd Jun Sun

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.