patch-2.3.28 linux/mm/highmem.c

Next file: linux/net/802/fc.c
Previous file: linux/mm/bootmem.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.27/linux/mm/highmem.c linux/mm/highmem.c
@@ -16,6 +16,7 @@
  * Copyright (C) 1999 Ingo Molnar <mingo@redhat.com>
  */
 
+#include <linux/config.h>
 #include <linux/mm.h>
 #include <linux/pagemap.h>
 #include <linux/highmem.h>
@@ -269,9 +270,9 @@
 	unsigned long vto;
 
 	p_to = to->b_page;
-	vto = kmap_atomic(p_to, KM_BOUNCE_WRITE);
+	vto = kmap_atomic(p_to, KM_BOUNCE_READ);
 	memcpy((char *)vto + bh_offset(to), from->b_data, to->b_size);
-	kunmap_atomic(vto, KM_BOUNCE_WRITE);
+	kunmap_atomic(vto, KM_BOUNCE_READ);
 }
 
 static inline void bounce_end_io (struct buffer_head *bh, int uptodate)

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