Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] md: set default_bitmap_offset properly in set_array_info

If an array is created using set_array_info, default_bitmap_offset isn't set
properly meaning that an internal bitmap cannot be hot-added until the array
is stopped and re-assembled.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

NeilBrown and committed by
Linus Torvalds
b2a2703c b5ab28a3

+3 -1
+3 -1
drivers/md/md.c
··· 1028 1028 mddev->size = le64_to_cpu(sb->size)/2; 1029 1029 mddev->events = le64_to_cpu(sb->events); 1030 1030 mddev->bitmap_offset = 0; 1031 - mddev->default_bitmap_offset = 0; 1032 1031 mddev->default_bitmap_offset = 1024; 1033 1032 1034 1033 mddev->recovery_cp = le64_to_cpu(sb->resync_offset); ··· 2930 2931 mddev->max_disks = MD_SB_DISKS; 2931 2932 2932 2933 mddev->sb_dirty = 1; 2934 + 2935 + mddev->default_bitmap_offset = MD_SB_BYTES >> 9; 2936 + mddev->bitmap_offset = 0; 2933 2937 2934 2938 /* 2935 2939 * Generate a 128 bit UUID