UBIFS: do not commit twice
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 9 Jan 2009 19:02:37 +0000 (21:02 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 26 Jan 2009 11:17:28 +0000 (13:17 +0200)
VFS calls '->sync_fs()' twice - first time with @wait = 0, second
time with @wait = 1. As a result, we may commit and synchronize
write-buffers twice. Avoid doing this by returning immediatelly if
@wait = 0.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

No differences found