patch-2.4.20 linux-2.4.20/include/linux/pagemap.h
Next file: linux-2.4.20/include/linux/parport.h
Previous file: linux-2.4.20/include/linux/nvram.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/linux/pagemap.h
- Orig date:
Mon Feb 25 11:38:13 2002
diff -urN linux-2.4.19/include/linux/pagemap.h linux-2.4.20/include/linux/pagemap.h
@@ -97,7 +97,15 @@
___wait_on_page(page);
}
-extern struct page * grab_cache_page (struct address_space *, unsigned long);
+/*
+ * Returns locked page at given index in given cache, creating it if needed.
+ */
+static inline struct page *grab_cache_page(struct address_space *mapping, unsigned long index)
+{
+ return find_or_create_page(mapping, index, mapping->gfp_mask);
+}
+
+
extern struct page * grab_cache_page_nowait (struct address_space *, unsigned long);
typedef int filler_t(void *, struct page*);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)