Commit d579ed00 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro

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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 8c800656
...@@ -74,6 +74,8 @@ static int jffs2_sync_fs(struct super_block *sb, int wait) ...@@ -74,6 +74,8 @@ static int jffs2_sync_fs(struct super_block *sb, int wait)
{ {
struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); struct jffs2_sb_info *c = JFFS2_SB_INFO(sb);
jffs2_write_super(sb);
mutex_lock(&c->alloc_sem); mutex_lock(&c->alloc_sem);
jffs2_flush_wbuf_pad(c); jffs2_flush_wbuf_pad(c);
mutex_unlock(&c->alloc_sem); mutex_unlock(&c->alloc_sem);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment