hfsplus: make sure sync writes out all metadata
authorChristoph Hellwig <hch@tuxera.com>
Tue, 23 Nov 2010 13:37:57 +0000 (14:37 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 23 Nov 2010 13:37:57 +0000 (14:37 +0100)
commit7dc4f001123f9ebe3b010a6c26acd18698ad205f
tree395164b35e03ba04c3ba2f9fd00b285bd52a8810
parent358f26d52680cb150907302d4334359de7dd2d59
hfsplus: make sure sync writes out all metadata

hfsplus stores all metadata except for the volume headers in special
inodes.  While these are marked hashed and periodically written out
by the flusher threads, we can't rely on that for sync.  For the case
of a data integrity sync the VM has life-lock avoidance code that
avoids writing inodes again that are redirtied during the sync,
which is something that can happen easily for hfsplus.  So make sure
we explicitly write out the metadata inodes at the beginning of
hfsplus_sync_fs.

Signed-off-by: Christoph Hellwig <hch@tuxera.com>
fs/hfsplus/super.c