diff options
author | Christoph Hellwig <hch@lst.de> | 2019-06-29 04:27:25 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-06-29 04:27:25 +0200 |
commit | 79b54d9bfcdcd0a431bb3501013885f8f00cdb43 (patch) | |
tree | 53073f8843202f5be0735fa7bd8dd6af3867b018 /crypto/akcipher.c | |
parent | xfs: make use of the l_targ field in struct xlog (diff) | |
download | linux-79b54d9bfcdcd0a431bb3501013885f8f00cdb43.tar.xz linux-79b54d9bfcdcd0a431bb3501013885f8f00cdb43.zip |
xfs: use bios directly to write log buffers
Currently the XFS logging code uses the xfs_buf structure and
associated APIs to write the log buffers to disk. This requires
various special cases in the log code and is generally not very
optimal.
Instead of using a buffer just allocate a kmem_alloc_larger region for
each log buffer, and use a bio and bio_vec array embedded in the iclog
structure to write the buffer to disk. This also allows for using
the bio split and chaining case to deal with the case of a log
buffer wrapping around the end of the log.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
[darrick: don't split if/else with an #endif]
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'crypto/akcipher.c')
0 files changed, 0 insertions, 0 deletions