diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-02-15 04:44:49 -0500 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-03-01 17:34:45 -0500 |
commit | 66d834ea603d61bd90fedad90300ca91c5bba0a3 (patch) | |
tree | f73072b9d87bd71a0739f07e4d0e26f10c5d925a /fs/xfs/xfs_inode.h | |
parent | fd3200bef7d66ed3924f72c79a465fb7ff85478a (diff) |
xfs: implement optimized fdatasync
Allow us to track the difference between timestamp and size updates
by using mark_inode_dirty from the I/O completion code, and checking
the VFS inode flags in xfs_file_fsync.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r-- | fs/xfs/xfs_inode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index 6c912b027596..41e8a4e2e3be 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h | |||
@@ -480,6 +480,7 @@ void xfs_lock_inodes(xfs_inode_t **, int, uint); | |||
480 | void xfs_lock_two_inodes(xfs_inode_t *, xfs_inode_t *, uint); | 480 | void xfs_lock_two_inodes(xfs_inode_t *, xfs_inode_t *, uint); |
481 | 481 | ||
482 | void xfs_synchronize_times(xfs_inode_t *); | 482 | void xfs_synchronize_times(xfs_inode_t *); |
483 | void xfs_mark_inode_dirty(xfs_inode_t *); | ||
483 | void xfs_mark_inode_dirty_sync(xfs_inode_t *); | 484 | void xfs_mark_inode_dirty_sync(xfs_inode_t *); |
484 | 485 | ||
485 | #define IHOLD(ip) \ | 486 | #define IHOLD(ip) \ |