diff options
author | Christoph Hellwig <hch@lst.de> | 2009-06-08 04:08:21 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-11 21:36:16 -0400 |
commit | d579ed00aa96a7f7486978540a0d7cecaff742ae (patch) | |
tree | a1c988e4f97ea9e3750779ff9cfa0f12d95386e4 /fs | |
parent | 8c8006564a58d0ea912bf7f2d0a758d97e4b464f (diff) |
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 <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/jffs2/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index f7bfd3ac8bf..07a22caf268 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) | |||
74 | { | 74 | { |
75 | struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); | 75 | struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); |
76 | 76 | ||
77 | jffs2_write_super(sb); | ||
78 | |||
77 | mutex_lock(&c->alloc_sem); | 79 | mutex_lock(&c->alloc_sem); |
78 | jffs2_flush_wbuf_pad(c); | 80 | jffs2_flush_wbuf_pad(c); |
79 | mutex_unlock(&c->alloc_sem); | 81 | mutex_unlock(&c->alloc_sem); |