]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: move generic_write_sync calls inwards
authorDave Chinner <dchinner@redhat.com>
Wed, 2 May 2018 19:54:52 +0000 (12:54 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 May 2018 17:04:00 +0000 (10:04 -0700)
commited5c3e66a32883e2b3d119d358d23fd5990dc9c2
tree84e5013b299203b460fa64b4be52c1a42777b9b5
parentb027d4c97b9675c2ad75dec94be4e46dceb3ec74
xfs: move generic_write_sync calls inwards

To prepare for iomap iinfrastructure based DSYNC optimisations.

While moving the code araound, move the XFS write bytes metric
update for direct IO into xfs_dio_write_end_io callback so that we
always capture the amount of data written via AIO+DIO. This fixes
the problem where queued AIO+DIO writes are not accounted to this
metric.

Signed-Off-By: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_file.c