diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index f7bfd3ac8bfa69ec501f76387f6b452dadb54aad..07a22caf26878223efffacdb01c69e23d4ce7a47 100644 --- a/fs/jffs2/super.c +++ b/fs/jffs2/super.c @@ -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);