]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
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>
Sun, 18 Jan 2009 12:04:57 +0000 (14:04 +0200)
commitdedb0d48a9d4d57086526b94a4b64da789a646e4
tree4771fbc7593b606bc9e88941590a7b4f0b480d82
parent1de9e8e70f5acc441550ca75433563d91b269bbe
UBIFS: do not commit twice

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>
fs/ubifs/super.c