]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/jffs2/super.c
JFFS2: fix unmount regression
[karo-tx-linux.git] / fs / jffs2 / super.c
index 61ea41389f90d91d8b3ab6a6a39cd580720f1950..1224d6b48e7e5270830928e323da026a7fe33c41 100644 (file)
@@ -100,6 +100,10 @@ static int jffs2_sync_fs(struct super_block *sb, int wait)
 {
        struct jffs2_sb_info *c = JFFS2_SB_INFO(sb);
 
+#ifdef CONFIG_JFFS2_FS_WRITEBUFFER
+       cancel_delayed_work_sync(&c->wbuf_dwork);
+#endif
+
        mutex_lock(&c->alloc_sem);
        jffs2_flush_wbuf_pad(c);
        mutex_unlock(&c->alloc_sem);