From: Jun Sun <jsun@mvista.com>
To: linux-mips@oss.sgi.com
Subject: PATCH: wrong number of kbytes reported in freeing initrd
Date: Thu, 19 Jul 2001 16:53:50 -0700 [thread overview]
Message-ID: <3B57730E.338B7B10@mvista.com> (raw)
... 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
reply other threads:[~2001-07-19 23:57 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=3B57730E.338B7B10@mvista.com \
--to=jsun@mvista.com \
--cc=linux-mips@oss.sgi.com \
/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