OSDN Git Service

dm kcopyd: add dm_kcopyd_zero to zero an area
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 31 Oct 2011 20:18:58 +0000 (20:18 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 31 Oct 2011 20:18:58 +0000 (20:18 +0000)
commit7f06965390e4a10fb6906c886324bfd0a96961be
tree5a6fd96cd56fb9d80bf1a40110ebfcdb5a8a7aa3
parentfbdc86f3bd597e108fa03d998132d04fcfe1d669
dm kcopyd: add dm_kcopyd_zero to zero an area

This patch introduces dm_kcopyd_zero() to make it easy to use
kcopyd to write zeros into the requested areas instead
instead of copying.  It is implemented by passing a NULL
copying source to dm_kcopyd_copy().

The forthcoming thin provisioning target uses this.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-kcopyd.c
include/linux/dm-kcopyd.h