md: tidy up set_bitmap_file
authorNeilBrown <neilb@suse.de>
Mon, 15 Dec 2014 01:57:00 +0000 (12:57 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 5 Feb 2015 22:32:56 +0000 (09:32 +1100)
commit1e594bb24d3d08fe4a8afa0fc45a61d6109130fa
tree955a41742e096370d91290fcae6efb94770e10a5
parentf4ad3d38d49dc0c4c911e31d8b884d5b74362b6e
md: tidy up set_bitmap_file

1/ delay setting mddev->bitmap_info.file until 'f' looks
   usable, so we don't have to unset it.
2/ Don't allow bitmap file to be set if bitmap_info.file
   is already set.

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