aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_linux.h
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2019-06-28 19:27:26 -0700
committerGravatar Darrick J. Wong <darrick.wong@oracle.com> 2019-06-28 19:27:26 -0700
commit6ad5b3255b9e3d6d94154738aacd5119bf9c8f6e (patch)
treeb4d9580b646613a392d40ba52f83675415c1c885 /fs/xfs/xfs_linux.h
parentxfs: return an offset instead of a pointer from xlog_align (diff)
downloadlinux-6ad5b3255b9e3d6d94154738aacd5119bf9c8f6e.tar.gz
linux-6ad5b3255b9e3d6d94154738aacd5119bf9c8f6e.tar.bz2
linux-6ad5b3255b9e3d6d94154738aacd5119bf9c8f6e.zip
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>
Diffstat (limited to 'fs/xfs/xfs_linux.h')
-rw-r--r--fs/xfs/xfs_linux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_linux.h b/fs/xfs/xfs_linux.h
index b78287666309..ca15105681ca 100644
--- a/fs/xfs/xfs_linux.h
+++ b/fs/xfs/xfs_linux.h
@@ -219,6 +219,9 @@ static inline uint64_t howmany_64(uint64_t x, uint32_t y)
return x;
}
+int xfs_rw_bdev(struct block_device *bdev, sector_t sector, unsigned int count,
+ char *data, unsigned int op);
+
#define ASSERT_ALWAYS(expr) \
(likely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))