]> www.infradead.org Git - users/hch/misc.git/commit
xfs: simplify xfs_buf_submit_bio
authorChristoph Hellwig <hch@lst.de>
Wed, 7 May 2025 12:04:39 +0000 (14:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 May 2025 13:31:07 +0000 (07:31 -0600)
commit9dccf2aa6ed5fa6ee92c8d71868bf3762ae85bda
tree3d08ecbba34a26f0f20b96553deb954c0ad04821
parentbd4e709b32ac932aee3b337969cbb1b57faf84bd
xfs: simplify xfs_buf_submit_bio

Convert the __bio_add_page(..., virt_to_page(), ...) pattern to the
bio_add_virt_nofail helper implementing it and use bio_add_vmalloc
to insulate xfs from the details of adding vmalloc memory to a bio.

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