]> www.infradead.org Git - users/hch/misc.git/commit
gfs2: use bdev_rw_virt in gfs2_read_super
authorChristoph Hellwig <hch@lst.de>
Sun, 13 Apr 2025 06:20:41 +0000 (08:20 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 Apr 2025 19:03:19 +0000 (14:03 -0500)
commita7b9557c61faa71c0cc166760eb75f3f7fa31a73
treec06aeb276a260f83d74feece2aa2327f9d1f6fd5
parent86f16996c1075bd4ceded6e9a4a12b780f4b2e8d
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>
fs/gfs2/ops_fstype.c