dm: factor out a common cleanup_mapped_device()
authorMike Snitzer <snitzer@redhat.com>
Tue, 28 Apr 2015 15:50:29 +0000 (11:50 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2015 18:18:58 +0000 (14:18 -0400)
commit0f20972f7bf6922df49ef7ce7a6df802347d2c52
tree0e29d710af668617668270f633ec56078b548be3
parent2d76fff18fd12284493456b01c998e540b140c23
dm: factor out a common cleanup_mapped_device()

Introduce a single common method for cleaning up a DM device's
mapped_device.  No functional change, just eliminates duplication of
delicate mapped_device cleanup code.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c