md: dm-raid should call helper function to clear rdev.
authorNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:54:30 +0000 (13:54 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:54:30 +0000 (13:54 +1000)
commit545c87957f4d53867b62921625f36df8c4b1bc08
tree52dc839ac828f7742efbad83cfbe5f35f11a04d6
parent96e67703e71f4b3cc32b747dbb6158ec74d01e19
md: dm-raid should call helper function to clear rdev.

dm-raid currently open-codes the freeing of some members of
and rdev.  It is more maintainable to have it call common code
from md.c which does this for all call-sites.

So remove free_disk_sb to md_rdev_clear, export it, and use it in
dm-raid.c

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/dm-raid.c
drivers/md/md.c
drivers/md/md.h