Skip to content
Commit 46a2d4cc authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

squashfs: always use bio_kmalloc in squashfs_bio_read



If a plain kmalloc that is not backed by a mempool is safe here for a
large read (and the actual page allocations), it must also be for a
small one, so simplify the code a bit.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarPhillip Lougher <phillip@squashfs.org.uk>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220406061228.410163-3-hch@lst.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f9e69aa9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment