aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jffs2/super.c')
-rw-r--r--fs/jffs2/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c
index 4c4e18c54a51..5059e9633edb 100644
--- a/fs/jffs2/super.c
+++ b/fs/jffs2/super.c
@@ -174,6 +174,9 @@ static void jffs2_put_super (struct super_block *sb)
174 174
175 D2(printk(KERN_DEBUG "jffs2: jffs2_put_super()\n")); 175 D2(printk(KERN_DEBUG "jffs2: jffs2_put_super()\n"));
176 176
177 if (sb->s_dirt)
178 jffs2_write_super(sb);
179
177 mutex_lock(&c->alloc_sem); 180 mutex_lock(&c->alloc_sem);
178 jffs2_flush_wbuf_pad(c); 181 jffs2_flush_wbuf_pad(c);
179 mutex_unlock(&c->alloc_sem); 182 mutex_unlock(&c->alloc_sem);