From: Artem Bityutskiy Date: Sun, 28 Dec 2008 06:18:43 +0000 (+0200) Subject: UBIFS: use ubi_sync X-Git-Tag: v2.6.29-rc1~533^2~11 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=cb5c6a2b2be59b480a3746c5113cb3411c053bff;p=linux-2.6-omap-h63xx.git UBIFS: use ubi_sync UBI now has (fake for now, though) synchronization call - use it. Signed-off-by: Artem Bityutskiy --- diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index ee8e7749eae..a14703e0a9a 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -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); } /**