Skip to content

Commit

Permalink
UBIFS: use ubi_sync
Browse files Browse the repository at this point in the history
UBI now has (fake for now, though) synchronization call - use
it.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Dec 31, 2008
1 parent f103830 commit cb5c6a2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit cb5c6a2

Please sign in to comment.