linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* typo in mm/hugetlb.c
@ 2004-04-11  2:03 Chen, Kenneth W
  0 siblings, 0 replies; only message in thread
From: Chen, Kenneth W @ 2004-04-11  2:03 UTC (permalink / raw)
  To: linux-mm; +Cc: Andrew Morton

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>

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

only message in thread, other threads:[~2004-04-11  2:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-11  2:03 typo in mm/hugetlb.c Chen, Kenneth W

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox