]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit000ac7b8fbb574d14682671d2349edbe4d5b9642
tree34b9110e34670e122862e0451f3d46dea9251205
parent211f6ef4b37ba78765bb38635de4ebb0310f80d8
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