diff options
author | NeilBrown <neilb@suse.de> | 2012-05-21 23:55:27 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-05-21 23:55:27 -0400 |
commit | a4a6125a074e1b08ee8ae34f700c5bca19eb9d18 (patch) | |
tree | 761a719a7d4f1a53d44349f7bef095368a9ae75a /drivers/md/md.c | |
parent | b81a040481233e5171cb3fbc62f44636d5ea18b2 (diff) |
md: allow array to be resized while bitmap is present.
Now that bitmaps can be resized, we can allow an array to be resized
while the bitmap is present.
This only covers resizing that involves changing the effective size
of member devices, not resizing that changes the number of devices.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 9e2336fbbd31..86adf4ac46cf 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -6153,11 +6153,7 @@ static int update_size(struct mddev *mddev, sector_t num_sectors) | |||
6153 | */ | 6153 | */ |
6154 | if (mddev->sync_thread) | 6154 | if (mddev->sync_thread) |
6155 | return -EBUSY; | 6155 | return -EBUSY; |
6156 | if (mddev->bitmap) | 6156 | |
6157 | /* Sorry, cannot grow a bitmap yet, just remove it, | ||
6158 | * grow, and re-add. | ||
6159 | */ | ||
6160 | return -EBUSY; | ||
6161 | rdev_for_each(rdev, mddev) { | 6157 | rdev_for_each(rdev, mddev) { |
6162 | sector_t avail = rdev->sectors; | 6158 | sector_t avail = rdev->sectors; |
6163 | 6159 | ||