md: move freeing of badblocks.page into md_rdev_clear
authorNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:01 +0000 (13:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:01 +0000 (13:55 +1000)
commit4fa2f327681808f653711e14203a42cf4644bda0
tree0fdbe3ffa37dac453401b2d9afed4929194d6176
parent545c87957f4d53867b62921625f36df8c4b1bc08
md: move freeing of badblocks.page into md_rdev_clear

This ensures that it is always freed - there were case where
we failed to free the page.

Reported-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c