dm raid1: separate region_hash interface part1
authorHeinz Mauelshagen <hjm@redhat.com>
Tue, 21 Oct 2008 16:45:06 +0000 (17:45 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 21 Oct 2008 16:45:06 +0000 (17:45 +0100)
commit1f965b19437017cea6d3f3f46acdc5acae5fd011
treef70fd0684d1afbde7f0031a6f8cb6aa58880723c
parentf3e1d26ede3fb15c06904d700f1d7b21bba2215e
dm raid1: separate region_hash interface part1

Separate the region hash code from raid1 so it can be shared by forthcoming
targets.  Use BUG_ON() for failed async dm_io() calls.

Signed-off-by: Heinz Mauelshagen <hjm@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/Makefile
drivers/md/dm-raid1.c
drivers/md/dm-region-hash.c [new file with mode: 0644]
include/linux/dm-region-hash.h [new file with mode: 0644]