UBI now has (fake for now, though) synchronization call - use
it.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
Artem Bityutskiy 2008-12-28 08:18:43 +02:00
Родитель f10383006c
Коммит cb5c6a2b2b
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -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);
}
/**