jffs2: remove unnecessary GC pass on umount
[firefly-linux-kernel-4.4.55.git] / fs / jffs2 / super.c
index 3f1c90c2bdf84f7679f7da25c315cce0a903bd4b..1613cd28304234a2b97d2aa7e72eeca704f21def 100644 (file)
@@ -333,9 +333,6 @@ static void jffs2_put_super (struct super_block *sb)
 
        jffs2_dbg(2, "%s()\n", __func__);
 
-       if (sb->s_dirt)
-               jffs2_write_super(sb);
-
        mutex_lock(&c->alloc_sem);
        jffs2_flush_wbuf_pad(c);
        mutex_unlock(&c->alloc_sem);