summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--super1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super1.c b/super1.c
index 1f6cbe2..13859a7 100644
--- a/super1.c
+++ b/super1.c
@@ -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;