.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2013 |
---|
3 | 4 | * Minchan Kim <minchan@kernel.org> |
---|
4 | | - * |
---|
5 | | - * This work is licensed under the terms of the GNU GPL, version 2. See |
---|
6 | | - * the COPYING file in the top-level directory. |
---|
7 | 5 | */ |
---|
8 | 6 | #include <linux/types.h> |
---|
9 | 7 | #include <linux/mutex.h> |
---|
10 | 8 | #include <linux/slab.h> |
---|
11 | | -#include <linux/buffer_head.h> |
---|
| 9 | +#include <linux/bio.h> |
---|
12 | 10 | #include <linux/sched.h> |
---|
13 | 11 | #include <linux/wait.h> |
---|
14 | 12 | #include <linux/cpumask.h> |
---|
.. | .. |
---|
182 | 180 | } |
---|
183 | 181 | |
---|
184 | 182 | |
---|
185 | | -int squashfs_decompress(struct squashfs_sb_info *msblk, struct buffer_head **bh, |
---|
186 | | - int b, int offset, int length, struct squashfs_page_actor *output) |
---|
| 183 | +int squashfs_decompress(struct squashfs_sb_info *msblk, struct bio *bio, |
---|
| 184 | + int offset, int length, |
---|
| 185 | + struct squashfs_page_actor *output) |
---|
187 | 186 | { |
---|
188 | 187 | int res; |
---|
189 | 188 | struct squashfs_stream *stream = msblk->stream; |
---|
190 | 189 | struct decomp_stream *decomp_stream = get_decomp_stream(msblk, stream); |
---|
191 | 190 | res = msblk->decompressor->decompress(msblk, decomp_stream->stream, |
---|
192 | | - bh, b, offset, length, output); |
---|
| 191 | + bio, offset, length, output); |
---|
193 | 192 | put_decomp_stream(decomp_stream, stream); |
---|
194 | 193 | if (res < 0) |
---|
195 | 194 | ERROR("%s decompression failed, data probably corrupt\n", |
---|