hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/fs/squashfs/decompressor_multi.c
....@@ -1,14 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2013
34 * 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.
75 */
86 #include <linux/types.h>
97 #include <linux/mutex.h>
108 #include <linux/slab.h>
11
-#include <linux/buffer_head.h>
9
+#include <linux/bio.h>
1210 #include <linux/sched.h>
1311 #include <linux/wait.h>
1412 #include <linux/cpumask.h>
....@@ -182,14 +180,15 @@
182180 }
183181
184182
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)
187186 {
188187 int res;
189188 struct squashfs_stream *stream = msblk->stream;
190189 struct decomp_stream *decomp_stream = get_decomp_stream(msblk, stream);
191190 res = msblk->decompressor->decompress(msblk, decomp_stream->stream,
192
- bh, b, offset, length, output);
191
+ bio, offset, length, output);
193192 put_decomp_stream(decomp_stream, stream);
194193 if (res < 0)
195194 ERROR("%s decompression failed, data probably corrupt\n",