jffs2: call jffs2_write_super from jffs2_sync_fs
[linux-2.6.git] / fs / jffs2 / super.c
index f7bfd3a..07a22ca 100644 (file)
@@ -74,6 +74,8 @@ static int jffs2_sync_fs(struct super_block *sb, int wait)
 {
        struct jffs2_sb_info *c = JFFS2_SB_INFO(sb);
 
+       jffs2_write_super(sb);
+
        mutex_lock(&c->alloc_sem);
        jffs2_flush_wbuf_pad(c);
        mutex_unlock(&c->alloc_sem);