[RFC][PATCH] unify pfn_to_page [9/25] ia64 pfn_to_page/page_to_pfn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In CONFIG_DISCONTIGMEM case, CONFIG_VIRTUAL_MEM_MAP is selected.(looks always...)
ia64 uses private page_to_pfn() func when CONFIG_VIRTUAL_MEM_MAP.
Replacing only FLATMEM case.

Signed-Off-By: KAMEZAWA Hiroyuki <[email protected]>
Index: cleanup_pfn_page/include/asm-ia64/page.h
===================================================================
--- cleanup_pfn_page.orig/include/asm-ia64/page.h
+++ cleanup_pfn_page/include/asm-ia64/page.h
@@ -106,9 +106,8 @@ extern int ia64_pfn_valid (unsigned long

 #ifdef CONFIG_FLATMEM
 # define pfn_valid(pfn)		(((pfn) < max_mapnr) && ia64_pfn_valid(pfn))
-# define page_to_pfn(page)	((unsigned long) (page - mem_map))
-# define pfn_to_page(pfn)	(mem_map + (pfn))
 #elif defined(CONFIG_DISCONTIGMEM)
+#define ARCH_HAS_PFN_PAGE
 extern struct page *vmem_map;
 extern unsigned long min_low_pfn;
 extern unsigned long max_low_pfn;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux