Commit cb5c6a2b authored by Artem Bityutskiy's avatar Artem Bityutskiy

UBIFS: use ubi_sync

UBI now has (fake for now, though) synchronization call - use
it.
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent f1038300
...@@ -466,12 +466,7 @@ static int ubifs_sync_fs(struct super_block *sb, int wait) ...@@ -466,12 +466,7 @@ static int ubifs_sync_fs(struct super_block *sb, int wait)
if (err) if (err)
return err; return err;
/* return ubi_sync(c->vi.ubi_num);
* 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;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment