diff options
author | NeilBrown <neilb@suse.de> | 2012-05-22 13:55:26 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-05-22 13:55:26 +1000 |
commit | b81a040481233e5171cb3fbc62f44636d5ea18b2 (patch) | |
tree | 769294e4042e3aa462306d3ad8a030d06ec7d19d /drivers | |
parent | d60b479d177a5735b6b4db6ee5280ef6653f50e7 (diff) | |
download | linux-3.10-b81a040481233e5171cb3fbc62f44636d5ea18b2.tar.gz linux-3.10-b81a040481233e5171cb3fbc62f44636d5ea18b2.tar.bz2 linux-3.10-b81a040481233e5171cb3fbc62f44636d5ea18b2.zip |
md/bitmap: make sure reshape request are reflected in superblock.
As a reshape may change the sync_size and/or chunk_size, we need
to update these whenever we write out the bitmap superblock.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/bitmap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index a35561f8f57..8f681da0027 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c @@ -420,6 +420,9 @@ void bitmap_update_sb(struct bitmap *bitmap) /* Just in case these have been changed via sysfs: */ sb->daemon_sleep = cpu_to_le32(bitmap->mddev->bitmap_info.daemon_sleep/HZ); sb->write_behind = cpu_to_le32(bitmap->mddev->bitmap_info.max_write_behind); + /* This might have been changed by a reshape */ + sb->sync_size = cpu_to_le64(bitmap->mddev->resync_max_sectors); + sb->chunksize = cpu_to_le32(bitmap->mddev->bitmap_info.chunksize); kunmap_atomic(sb); write_page(bitmap, bitmap->storage.sb_page, 1); } |