]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: dm-raid should call helper function to clear rdev.
authorNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:51 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:51 +0000 (10:57 +1000)
commitf297e7072e57a01bb895e881d346e7ee13d6fc72
treeabac2d666e9d1c3fcfb9416fa0dc7f5d9166b618
parentcfbf91e38519a0280e5aa1894217bb0adf281fb6
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