linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Chen, Kenneth W" <kenneth.w.chen@intel.com>
To: linux-mm@kvack.org
Cc: Andrew Morton <akpm@osdl.org>
Subject: typo in mm/hugetlb.c
Date: Sat, 10 Apr 2004 19:03:52 -0700	[thread overview]
Message-ID: <200404110203.i3B23pF17863@unix-os.sc.intel.com> (raw)

People might caught this already: mm/hugetlb.c doesn't compile for
x86 in linux-2.6.5-mm3 due to a typo and a missing semicolon.

Patch to fix compile error when highmem is turned on.

diff -Nrup linux-2.6.5/mm/hugetlb.c linux-2.6.5.ken/mm/hugetlb.c
--- linux-2.6.5/mm/hugetlb.c	2004-04-10 18:44:37.000000000 -0700
+++ linux-2.6.5.ken/mm/hugetlb.c	2004-04-10 18:45:31.000000000 -0700
@@ -140,11 +140,11 @@ static int try_to_free_low(unsigned long
 	for (i = 0; i < MAX_NUMNODES; ++i) {
 		struct page *page;
 		list_for_each_entry(page, &hugepage_freelists[i], lru) {
-			if (PageHighmem(page))
+			if (PageHighMem(page))
 				continue;
 			list_del(&page->lru);
 			update_and_free_page(page);
-			--free_huge_pages
+			--free_huge_pages;
 			if (!--count)
 				return 0;
 		}


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

                 reply	other threads:[~2004-04-11  2:03 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=200404110203.i3B23pF17863@unix-os.sc.intel.com \
    --to=kenneth.w.chen@intel.com \
    --cc=akpm@osdl.org \
    --cc=linux-mm@kvack.org \
    /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