Commit 4c8abf15 authored by Christophe Saout's avatar Christophe Saout Committed by Linus Torvalds

[PATCH] Device-mapper: dm-zero flushing fix

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0f824768
......@@ -35,7 +35,8 @@ static void zero_fill_bio(struct bio *bio)
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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment