|
@@ -2029,8 +2029,10 @@ int bitmap_resize(struct bitmap *bitmap, sector_t blocks,
|
|
!bitmap->mddev->bitmap_info.external,
|
|
!bitmap->mddev->bitmap_info.external,
|
|
mddev_is_clustered(bitmap->mddev)
|
|
mddev_is_clustered(bitmap->mddev)
|
|
? bitmap->cluster_slot : 0);
|
|
? bitmap->cluster_slot : 0);
|
|
- if (ret)
|
|
|
|
|
|
+ if (ret) {
|
|
|
|
+ bitmap_file_unmap(&store);
|
|
goto err;
|
|
goto err;
|
|
|
|
+ }
|
|
|
|
|
|
pages = DIV_ROUND_UP(chunks, PAGE_COUNTER_RATIO);
|
|
pages = DIV_ROUND_UP(chunks, PAGE_COUNTER_RATIO);
|
|
|
|
|