patch-2.4.0-test6 linux/include/linux/pagemap.h
Next file: linux/include/linux/pci_ids.h
Previous file: linux/include/linux/netfilter_ipv4/ip_nat_helper.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed Aug 9 18:57:55 2000
- Orig file:
v2.4.0-test5/linux/include/linux/pagemap.h
- Orig date:
Fri May 12 14:18:56 2000
diff -u --recursive --new-file v2.4.0-test5/linux/include/linux/pagemap.h linux/include/linux/pagemap.h
@@ -36,7 +36,7 @@
/*
* From a kernel address, get the "struct page *"
*/
-#define page_cache_entry(x) (mem_map + MAP_NR(x))
+#define page_cache_entry(x) virt_to_page(x)
extern unsigned int page_hash_bits;
#define PAGE_HASH_BITS (page_hash_bits)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)