Fix type - MD_SB_CLEAN is a bit number, not a bitmask.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
This commit is contained in:
parent
ea32955930
commit
34321279b8
2
super1.c
2
super1.c
|
@ -411,7 +411,7 @@ static int init_super1(void **sbp, mdu_array_info_t *info)
|
||||||
|
|
||||||
sb->utime = sb->ctime;
|
sb->utime = sb->ctime;
|
||||||
sb->events = __cpu_to_le64(1);
|
sb->events = __cpu_to_le64(1);
|
||||||
if (info->state & MD_SB_CLEAN)
|
if (info->state & (1<<MD_SB_CLEAN))
|
||||||
sb->resync_offset = ~0ULL;
|
sb->resync_offset = ~0ULL;
|
||||||
else
|
else
|
||||||
sb->resync_offset = 0;
|
sb->resync_offset = 0;
|
||||||
|
|
Loading…
Reference in New Issue