Skip to contentSkip to conversation

1/5: Device-mapper dm-io.c

PATCH In review Alasdair G Kergon 2 participants 2 messages Jun 2, 2004

Subsystems (4)
lore
Share & tools
lore

Alasdair G Kergon

author maintainer
#0 lore raw

PATCH 1/1 1/5: Device-mapper dm-io.c

dm-io: device-mapper i/o library for kcopyd

drivers/md/Makefile +1 -1
@@ -3,7 +3,7 @@
 #
 
 dm-mod-objs	:= dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
-		   dm-ioctl.o
+		   dm-ioctl.o dm-io.o
 raid6-objs	:= raid6main.o raid6algos.o raid6recov.o raid6tables.o \
 		   raid6int1.o raid6int2.o raid6int4.o \
 		   raid6int8.o raid6int16.o raid6int32.o \
mm/mempool.c +0 -6
@@ -89,11 +89,6 @@
 }
 EXPORT_SYMBOL(mempool_create);
 
-/*
- * mempool_resize is disabled for now, because it has no callers.  Feel free
- * to turn it back on if needed.
- */
-#if 0
 /**
  * mempool_resize - resize an existing memory pool
  * @pool:       pointer to the memory pool which was allocated via
@@ -163,7 +158,6 @@
 	return 0;
 }
 EXPORT_SYMBOL(mempool_resize);
-#endif
 
 /**
  * mempool_destroy - deallocate a memory pool
drivers/md/dm-io.c +636 -0

636 lines not on this page · raw message

drivers/md/dm-io.h +77 -0

77 lines not on this page · raw message

#1 lore raw
Quoted 1 line · Alasdair G Kergon

dm-io: device-mapper i/o library for kcopyd

Based on the dm-zero.c discussion, dm-io is going to need a similar patch.

Andrew, are these incremental patches okay, or should we resubmit the whole patch for these modules?

Signature · 16 lines
Kevin Corry
[email protected]
http://evms.sourceforge.net/


--- diff/drivers/md/dm-io.c	2004-06-02 11:35:48.000000000 -0500
+++ source/drivers/md/dm-io.c	2004-06-02 11:34:37.000000000 -0500
@@ -341,7 +341,8 @@
 	bio_for_each_segment(bv, bio, i) {
 		char *data = bvec_kmap_irq(bv, &flags);
 		memset(data, 0, bv->bv_len);
-		bvec_kunmap_irq(bv, &flags);
+		flush_dcache_page(bv->bv_page);
+		bvec_kunmap_irq(data, &flags);
 	}
 }