Guoqing Jiang f9a67b1182 md/bitmap: clear bitmap if bitmap_create failed
If bitmap_create returns an error, we need to call
either bitmap_destroy or bitmap_free to do clean up,
and the selection is based on mddev->bitmap is set
or not.

And the sysfs_put(bitmap->sysfs_can_clear) is moved
from bitmap_destroy to bitmap_free, and the comment
of bitmap_create is changed as well.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
2016-04-01 13:05:50 -07:00
..
2016-03-14 11:36:10 -07:00
2014-01-14 23:23:03 -05:00
2016-01-04 10:29:12 -05:00
2012-07-30 17:25:16 -07:00
2015-10-31 19:06:01 -04:00
2016-01-20 13:52:20 -08:00
2016-03-31 10:04:18 -07:00
2016-01-15 12:28:00 -08:00
2015-12-08 14:59:19 +01:00
2015-08-13 12:31:57 -06:00
2016-03-17 14:30:15 -07:00