xfs: reimplement fdatasync support
authorChristoph Hellwig <hch@infradead.org>
Wed, 29 Feb 2012 09:53:55 +0000 (09:53 +0000)
committerBen Myers <bpm@sgi.com>
Tue, 13 Mar 2012 22:18:14 +0000 (17:18 -0500)
commit8f639ddea0c4978ae9b4e46ea041c9e5afe0ee8d
treed2b90c868fd3ad818317e3fff8448d6940afb3d5
parentf5d8d5c4bf29c9f7754d9cbe5e27c785106ba872
xfs: reimplement fdatasync support

Add an in-memory only flag to say we logged timestamps only, and use it to
check if fdatasync can optimize away the log force.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_file.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_inode_item.h
fs/xfs/xfs_super.c