aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode_item.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-02-29 04:53:55 -0500
committerBen Myers <bpm@sgi.com>2012-03-13 18:18:14 -0400
commit8f639ddea0c4978ae9b4e46ea041c9e5afe0ee8d (patch)
treed2b90c868fd3ad818317e3fff8448d6940afb3d5 /fs/xfs/xfs_inode_item.c
parentf5d8d5c4bf29c9f7754d9cbe5e27c785106ba872 (diff)
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>
Diffstat (limited to 'fs/xfs/xfs_inode_item.c')
-rw-r--r--fs/xfs/xfs_inode_item.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode_item.c b/fs/xfs/xfs_inode_item.c
index 8becef4f9e6..05d924efcea 100644
--- a/fs/xfs/xfs_inode_item.c
+++ b/fs/xfs/xfs_inode_item.c
@@ -438,7 +438,8 @@ out:
438 * games in recovery easier, which isn't a big deal as just about any 438 * games in recovery easier, which isn't a big deal as just about any
439 * transaction would dirty it anyway. 439 * transaction would dirty it anyway.
440 */ 440 */
441 iip->ili_format.ilf_fields = XFS_ILOG_CORE | iip->ili_fields; 441 iip->ili_format.ilf_fields = XFS_ILOG_CORE |
442 (iip->ili_fields & ~XFS_ILOG_TIMESTAMP);
442 iip->ili_format.ilf_size = nvecs; 443 iip->ili_format.ilf_size = nvecs;
443} 444}
444 445