dm persistent data: create new dm_block_manager struct
commit51a0f659c03ccc8ec407c7a9f9701d1b4618d515
authorJoe Thornber <ejt@redhat.com>
Fri, 27 Jul 2012 14:08:08 +0000 (27 15:08 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 27 Jul 2012 14:08:08 +0000 (27 15:08 +0100)
tree21b05e433e1f513079e51d3ccec1da6b1ea1008f
parent41675aea32949786cf002c4ab179b85144d3423b
dm persistent data: create new dm_block_manager struct

This patch introduces a separate struct for the block_manager.
It also uses IS_ERR to check the return value of dm_bufio_client_create
instead of testing incorrectly for NULL.

Prior to this patch a struct dm_block_manager was really an alias for
a struct dm_bufio_client.  We want to add some functionality to the
block manager that will require extra fields, so this one to one
mapping is no longer valid.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin-metadata.c
drivers/md/persistent-data/dm-block-manager.c