UBIFS: fix file-system synchronization
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 28 Dec 2008 06:04:17 +0000 (08:04 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 31 Dec 2008 12:13:24 +0000 (14:13 +0200)
commit304d427cd99eb645b44b08d77e70ce308e6bcd8c
tree257a12f1b04d6fad8e40ccd1f9bd712e109c8cf8
parent79807d075ab8d1ca3574f5f52421e0047c1f1256
UBIFS: fix file-system synchronization

Argh. The ->sync_fs call is called _before_ all inodes are flushed.
This means we first sync write buffers and commit, then all
inodes are synced, and we end up with unflushed write buffers!

Fix this by forcing synching all indoes from 'ubifs_sync_fs()'.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/super.c