aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-12-28 08:18:43 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-12-31 14:13:24 +0200
commitcb5c6a2b2be59b480a3746c5113cb3411c053bff (patch)
tree16b67528c7ed1b8f1d6c4cbd9ac62cc1335a77a6 /fs
parentf10383006c26b33539820759b9dc8656497b02a4 (diff)
UBIFS: use ubi_sync
UBI now has (fake for now, though) synchronization call - use it. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ubifs/super.c7
1 files changed, 1 insertions, 6 deletions
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);
}
/**