]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/jffs2/super.c
remove ->write_super call in generic_shutdown_super
[mirror_ubuntu-bionic-kernel.git] / fs / jffs2 / super.c
index 4c4e18c54a5119e209ea23a7bb6ad9eb78182b95..5059e9633edbde74fea91635d39cf9a68d48cdb2 100644 (file)
@@ -174,6 +174,9 @@ static void jffs2_put_super (struct super_block *sb)
 
        D2(printk(KERN_DEBUG "jffs2: jffs2_put_super()\n"));
 
+       if (sb->s_dirt)
+               jffs2_write_super(sb);
+
        mutex_lock(&c->alloc_sem);
        jffs2_flush_wbuf_pad(c);
        mutex_unlock(&c->alloc_sem);