public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pmd_large vs. pmd_huge
@ 2003-07-28 19:08 Pete Zaitcev
  0 siblings, 0 replies; only message in thread
From: Pete Zaitcev @ 2003-07-28 19:08 UTC (permalink / raw)
  To: linux-kernel

I looked at the 2.6.0-test2 to find out the difference between
large and huge pages, but it seems they are one and the same.
The ia64 only implements pmd_huge, so how about just going
with that everywhere? For starters, we can do this to strike
down an evil #ifdef:

diff -urN -X dontdiff linux-2.6.0-test1-bk2/mm/slab.c linux-2.6.0-test1-bk2-nip/mm/slab.c
--- linux-2.6.0-test1-bk2/mm/slab.c	2003-07-23 18:20:17.000000000 -0700
+++ linux-2.6.0-test1-bk2-nip/mm/slab.c	2003-07-28 11:58:46.000000000 -0700
@@ -91,6 +91,7 @@
 #include	<linux/cpu.h>
 #include	<linux/sysctl.h>
 #include	<linux/module.h>
+#include	<linux/hugetlb.h>
 
 #include	<asm/uaccess.h>
 #include	<asm/cacheflush.h>
@@ -2728,12 +2729,10 @@
 			printk("No pmd.\n");
 			break;
 		}
-#ifdef CONFIG_X86
-		if (pmd_large(*pmd)) {
-			printk("Large page.\n");
+		if (pmd_huge(*pmd)) {
+			printk("Huge page.\n");
 			break;
 		}
-#endif
 		printk("normal page, pte_val 0x%llx\n",
 		  (unsigned long long)pte_val(*pte_offset_kernel(pmd, addr)));
 	} while(0);

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

only message in thread, other threads:[~2003-07-28 18:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-28 19:08 pmd_large vs. pmd_huge Pete Zaitcev

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