squashfs: always use bio_kmalloc in squashfs_bio_read
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Mar 2022 06:15:48 +0000 (07:15 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Mar 2022 14:37:57 +0000 (08:37 -0600)
commit88a39feabf25efbaec775ffb48ea240af198994e
treee15e827a37e8e240dd26b2863c236a673973bab0
parent6978ffddd5bba44e6b7614d52868cf4954e0529b
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: Christoph Hellwig <hch@lst.de>
Acked-by: Phillip Lougher <phillip@squashfs.org.uk>
Link: https://lore.kernel.org/r/20220308061551.737853-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/squashfs/block.c