patch-2.4.3 linux/include/linux/pagemap.h
Next file: linux/include/linux/pci.h
Previous file: linux/include/linux/openpic.h
Back to the patch index
Back to the overall index
-  Lines: 15
-  Date:
Mon Mar 26 15:48:15 2001
-  Orig file: 
v2.4.2/linux/include/linux/pagemap.h
-  Orig date: 
Thu Jan  4 14:50:47 2001
diff -u --recursive --new-file v2.4.2/linux/include/linux/pagemap.h linux/include/linux/pagemap.h
@@ -29,9 +29,13 @@
 #define PAGE_CACHE_ALIGN(addr)	(((addr)+PAGE_CACHE_SIZE-1)&PAGE_CACHE_MASK)
 
 #define page_cache_get(x)	get_page(x)
-#define page_cache_alloc()	alloc_pages(GFP_HIGHUSER, 0)
 #define page_cache_free(x)	__free_page(x)
 #define page_cache_release(x)	__free_page(x)
+
+static inline struct page *page_cache_alloc(struct address_space *x)
+{
+	return alloc_pages(x->gfp_mask, 0);
+}
 
 /*
  * From a kernel address, get the "struct page *"
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)