From: Christoph Hellwig Date: Mon, 8 Jun 2009 08:08:21 +0000 (+0200) Subject: jffs2: call jffs2_write_super from jffs2_sync_fs X-Git-Tag: v2.6.31-rc1~375^2~8 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d579ed00aa96a7f7486978540a0d7cecaff742ae;p=pandora-kernel.git jffs2: call jffs2_write_super from jffs2_sync_fs The call to ->write_super from __sync_filesystem will go away, so make sure jffs2 performs the same actions from inside ->sync_fs. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro --- diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index f7bfd3ac8bfa..07a22caf2687 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);