xfs: refactor buffer submission into a common helper
authorBrian Foster <bfoster@redhat.com>
Thu, 12 Jul 2018 05:26:34 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:34 +0000 (22:26 -0700)
commiteaebb515f1a4728565c482b13dfb17273dc4ddc8
tree34b9110e34670e122862e0451f3d46dea9251205
parent5fdd97944ee5ae0fcdd88227224d0c2c87aa6db9
xfs: refactor buffer submission into a common helper

Sync and async buffer submission both do generally similar things
with a couple odd exceptions. Refactor the core buffer submission
code into a common helper to isolate buffer submission from
completion handling of synchronous buffer I/O.

This patch does not change behavior. It is a step towards support
for using synchronous buffer I/O via synchronous delwri queue
submission.

Designed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Brian Foster <bfoster@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_buf.c
fs/xfs/xfs_trace.h