zonefs: use bdev_rw_virt in zonefs_read_super
authorChristoph Hellwig <hch@lst.de>
Wed, 7 May 2025 12:04:35 +0000 (14:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 May 2025 13:31:07 +0000 (07:31 -0600)
commitb2f676efe601586360e5f7461f6d36981ac1e6c9
tree021672e207c4775be8d6ff672841bfd3aeec9a3c
parent65f8e62593e64f6991ece4f08ab9e147e62df488
zonefs: use bdev_rw_virt in zonefs_read_super

Switch zonefs_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>
Acked-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20250507120451.4000627-12-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/zonefs/super.c