hfsplus: flush disk caches in sync and fsync
authorChristoph Hellwig <hch@tuxera.com>
Tue, 23 Nov 2010 13:38:21 +0000 (14:38 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 23 Nov 2010 13:38:21 +0000 (14:38 +0100)
commit34a2d313c51f47cae50ccb89f4196462665f2c48
treec641c7bd24b9e343139a3e1c4d81e51822114cd9
parente34947056076ca5467ee8256d2d9cbc594a79b37
hfsplus: flush disk caches in sync and fsync

Flush the disk cache in fsync and sync to make sure data actually is
on disk on completion of these system calls.  There is a nobarrier
mount option to disable this behaviour.  It's slightly misnamed now
that barrier actually are gone, but it matches the name used by all
major filesystems.

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