]> www.infradead.org Git - users/hch/misc.git/commit
zonefs: use bdev_rw_virt in zonefs_read_super
authorChristoph Hellwig <hch@lst.de>
Sun, 13 Apr 2025 06:06:35 +0000 (08:06 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 Apr 2025 19:03:19 +0000 (14:03 -0500)
commitecc59b7a9523bfbd95bc10aa9b8199279ab40fa6
tree238945f1b50a44bd5d785aef3fe6a102bf4701bc
parenta7b9557c61faa71c0cc166760eb75f3f7fa31a73
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>
fs/zonefs/super.c