patch-2.4.22 linux-2.4.22/include/linux/highmem.h

Next file: linux-2.4.22/include/linux/i2c-algo-sibyte.h
Previous file: linux-2.4.22/include/linux/hiddev.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/linux/highmem.h linux-2.4.22/include/linux/highmem.h
@@ -121,4 +121,15 @@
 	kunmap_atomic(vto, KM_USER1);
 }
 
+static inline void copy_highpage(struct page *to, struct page *from)
+{
+	char *vfrom, *vto;
+
+	vfrom = kmap_atomic(from, KM_USER0);
+	vto = kmap_atomic(to, KM_USER1);
+	copy_page(vto, vfrom);
+	kunmap_atomic(vfrom, KM_USER0);
+	kunmap_atomic(vto, KM_USER1);
+}
+
 #endif /* _LINUX_HIGHMEM_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)