]> git.baikalelectronics.ru Git - kernel.git/commit
squashfs: always use bio_kmalloc in squashfs_bio_read
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Apr 2022 06:12:25 +0000 (08:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:29:41 +0000 (19:29 -0600)
commitd7cc0f76c0d2a9f47fcb6747f39c66fdafe793e8
treea371f007a452d424644ac2cfee090e292fd8caaa
parent48ea957dd6b1e339e5ca32de100b21dbfeef5c45
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>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220406061228.410163-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/squashfs/block.c