diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-02-29 04:53:55 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-03-13 18:18:14 -0400 |
commit | 8f639ddea0c4978ae9b4e46ea041c9e5afe0ee8d (patch) | |
tree | d2b90c868fd3ad818317e3fff8448d6940afb3d5 /fs/xfs/xfs_super.c | |
parent | f5d8d5c4bf29c9f7754d9cbe5e27c785106ba872 (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_super.c')
-rw-r--r-- | fs/xfs/xfs_super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index e602c8c67c5c..e9ad7894648e 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -907,7 +907,7 @@ xfs_fs_dirty_inode( | |||
907 | ip->i_d.di_mtime.t_nsec = (__int32_t)inode->i_mtime.tv_nsec; | 907 | ip->i_d.di_mtime.t_nsec = (__int32_t)inode->i_mtime.tv_nsec; |
908 | 908 | ||
909 | xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); | 909 | xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); |
910 | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); | 910 | xfs_trans_log_inode(tp, ip, XFS_ILOG_TIMESTAMP); |
911 | error = xfs_trans_commit(tp, 0); | 911 | error = xfs_trans_commit(tp, 0); |
912 | if (error) | 912 | if (error) |
913 | goto trouble; | 913 | goto trouble; |