提交 cb5c6a2b 编写于 作者: A Artem Bityutskiy

UBIFS: use ubi_sync

UBI now has (fake for now, though) synchronization call - use
it.
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
上级 f1038300
......@@ -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);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册