OSDN Git Service

xfs: use bios directly to read and write the log recovery buffers
authorChristoph Hellwig <hch@lst.de>
Sat, 29 Jun 2019 02:27:26 +0000 (19:27 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 29 Jun 2019 02:27:26 +0000 (19:27 -0700)
commit6ad5b3255b9e3d6d94154738aacd5119bf9c8f6e
treeb4d9580b646613a392d40ba52f83675415c1c885
parent18ffb8c3f0bfd2a0b92026eb43651591288c3a39
xfs: use bios directly to read and write the log recovery buffers

The xfs_buf structure is basically used as a glorified container for
a memory allocation in the log recovery code.  Replace it with a
call to kmem_alloc_large and a simple abstraction to read into or
write from it synchronously using chained bios.

Signed-off-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/Makefile
fs/xfs/xfs_bio_io.c [new file with mode: 0644]
fs/xfs/xfs_linux.h
fs/xfs/xfs_log_recover.c