xfs: simplify building the bio in xlog_write_iclog
authorChristoph Hellwig <hch@lst.de>
Wed, 7 May 2025 12:04:41 +0000 (14:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 May 2025 13:31:07 +0000 (07:31 -0600)
commit5ced480d4886b12e6a2058ac3ebd749b0ff14573
tree9950e4700548cf2a3fbee04ca0d3071a5ef4b0c1
parentd486bbecc90d86e0292071bd06322543f8f5f658
xfs: simplify building the bio in xlog_write_iclog

Use the bio_add_virt_nofail and bio_add_vmalloc helpers to abstract
away the details of the memory allocation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20250507120451.4000627-18-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/xfs/xfs_log.c