hfsplus: simplify fsync
authorChristoph Hellwig <hch@tuxera.com>
Tue, 23 Nov 2010 13:38:06 +0000 (14:38 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 23 Nov 2010 13:38:06 +0000 (14:38 +0100)
commit281469766bdde2d14bc73e1fec347e6dd7f63319
tree32b00c29067aa60fc7ad3277816bd86900a1c81d
parentf02e26f8d90f8cde98314c72c2e890bc281a8346
hfsplus: simplify fsync

Remove lots of code we don't need from fsync, we just need to call
->write_inode on the inode if it's dirty, for which sync_inode_metadata
is a lot more efficient than write_inode_now, and we need to write
out the various metadata inodes, which we now do explicitly instead
of by calling ->sync_fs.

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