Merge tag 'for-linus-3.3' of git://git.infradead.org/mtd-2.6
[~shefty/rdma-dev.git] / fs / jffs2 / super.c
index 8be4925296cf981aed60190b96eca8fd0bf6e467..f2d96b5e64f6fa47ee8fd11543156c926779ca0e 100644 (file)
@@ -335,9 +335,7 @@ static void jffs2_put_super (struct super_block *sb)
        jffs2_flash_cleanup(c);
        kfree(c->inocache_list);
        jffs2_clear_xattr_subsystem(c);
-       if (c->mtd->sync)
-               c->mtd->sync(c->mtd);
-
+       mtd_sync(c->mtd);
        D1(printk(KERN_DEBUG "jffs2_put_super returning\n"));
 }