Skip to content

Commit

Permalink
Write out both superblocks on mismatch
Browse files Browse the repository at this point in the history
If the first superblock is wrong and the second gets written, there
will still be a mismatch on next mount.  Write both to make sure they
match.

Signed-off-by: Joern Engel <[email protected]>
  • Loading branch information
Joern Engel committed Mar 27, 2010
1 parent e326068 commit faaa27a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/logfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static int logfs_recover_sb(struct super_block *sb)
}
if (valid0 && valid1 && ds_cmp(ds0, ds1)) {
printk(KERN_INFO"Superblocks don't match - fixing.\n");
return write_one_sb(sb, super->s_devops->find_last_sb);
return logfs_write_sb(sb);
}
/* If neither is valid now, something's wrong. Didn't we properly
* check them before?!? */
Expand Down

0 comments on commit faaa27a

Please sign in to comment.