patch-1.3.58 linux/include/linux/pagemap.h

Next file: linux/include/linux/pci.h
Previous file: linux/include/linux/optcd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.57/linux/include/linux/pagemap.h linux/include/linux/pagemap.h
@@ -110,6 +110,13 @@
 	*p = page;
 }
 
+extern void __wait_on_page(struct page *);
+static inline void wait_on_page(struct page * page)
+{
+	if (page->locked)
+		__wait_on_page(page);
+}
+
 extern void update_vm_cache(struct inode *, unsigned long, const char *, int);
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this