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:
Neil Brown 2005-06-07 23:03:46 +00:00
parent ea32955930
commit 34321279b8
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ static int init_super1(void **sbp, mdu_array_info_t *info)
sb->utime = sb->ctime;
sb->events = __cpu_to_le64(1);
if (info->state & MD_SB_CLEAN)
if (info->state & (1<<MD_SB_CLEAN))
sb->resync_offset = ~0ULL;
else
sb->resync_offset = 0;