gfs2: use bdev_rw_virt in gfs2_read_super
authorChristoph Hellwig <hch@lst.de>
Wed, 7 May 2025 12:04:34 +0000 (14:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 May 2025 13:31:07 +0000 (07:31 -0600)
commit65f8e62593e64f6991ece4f08ab9e147e62df488
tree9863659ee9b44ab41b614d02e3a403164bd49a34
parenta216081323a1391991c9073fed2459265bfc7f5c
gfs2: use bdev_rw_virt in gfs2_read_super

Switch gfs2_read_super to allocate the superblock buffer using kmalloc
which falls back to the page allocator for PAGE_SIZE allocation but
gives us a kernel virtual address and then use bdev_rw_virt to perform
the synchronous read into it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20250507120451.4000627-11-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/gfs2/ops_fstype.c