Write out both superblocks on mismatch

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 <joern@logfs.org>

+1 -1
+1 -1
fs/logfs/super.c
··· 277 } 278 if (valid0 && valid1 && ds_cmp(ds0, ds1)) { 279 printk(KERN_INFO"Superblocks don't match - fixing.\n"); 280 - return write_one_sb(sb, super->s_devops->find_last_sb); 281 } 282 /* If neither is valid now, something's wrong. Didn't we properly 283 * check them before?!? */
··· 277 } 278 if (valid0 && valid1 && ds_cmp(ds0, ds1)) { 279 printk(KERN_INFO"Superblocks don't match - fixing.\n"); 280 + return logfs_write_sb(sb); 281 } 282 /* If neither is valid now, something's wrong. Didn't we properly 283 * check them before?!? */