]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
UBIFS: use ubi_sync
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 28 Dec 2008 06:18:43 +0000 (08:18 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 31 Dec 2008 12:13:24 +0000 (14:13 +0200)
UBI now has (fake for now, though) synchronization call - use
it.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/super.c

index ee8e7749eae199b34ca7130125d2cc5ed7f52cf2..a14703e0a9ad673732bc88892059f3e12ae7feaa 100644 (file)
@@ -466,12 +466,7 @@ static int ubifs_sync_fs(struct super_block *sb, int wait)
        if (err)
                return err;
 
-       /*
-        * We ought to call sync for c->ubi but it does not have one. If it had
-        * it would in turn call mtd->sync, however mtd operations are
-        * synchronous anyway, so we don't lose any sleep here.
-        */
-       return err;
+       return ubi_sync(c->vi.ubi_num);
 }
 
 /**