xfs: factor out log buffer writing from xlog_sync
authorChristoph Hellwig <hch@lst.de>
Sat, 29 Jun 2019 02:27:22 +0000 (19:27 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 29 Jun 2019 02:27:22 +0000 (19:27 -0700)
commit94860a301b759ade6bbcf89ea7f5d19b3e2bf6d1
tree1eb125ef358a4de77ec4666602a20915b942982b
parent1f9489be025732fa210de4e6cfd9bd4440741f74
xfs: factor out log buffer writing from xlog_sync

Replace the not very useful xlog_bdstrat wrapper with a new version that
that takes care of all the common logic for writing log buffers.  Use
the opportunity to avoid overloading the buffer address with the log
relative address, and to shed the unused return value.

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