hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/fs/squashfs/decompressor_single.c
....@@ -1,15 +1,13 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2013
34 * Phillip Lougher <phillip@squashfs.org.uk>
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
97 #include <linux/types.h>
108 #include <linux/mutex.h>
119 #include <linux/slab.h>
12
-#include <linux/buffer_head.h>
10
+#include <linux/bio.h>
1311
1412 #include "squashfs_fs.h"
1513 #include "squashfs_fs_sb.h"
....@@ -61,14 +59,15 @@
6159 }
6260 }
6361
64
-int squashfs_decompress(struct squashfs_sb_info *msblk, struct buffer_head **bh,
65
- int b, int offset, int length, struct squashfs_page_actor *output)
62
+int squashfs_decompress(struct squashfs_sb_info *msblk, struct bio *bio,
63
+ int offset, int length,
64
+ struct squashfs_page_actor *output)
6665 {
6766 int res;
6867 struct squashfs_stream *stream = msblk->stream;
6968
7069 mutex_lock(&stream->mutex);
71
- res = msblk->decompressor->decompress(msblk, stream->stream, bh, b,
70
+ res = msblk->decompressor->decompress(msblk, stream->stream, bio,
7271 offset, length, output);
7372 mutex_unlock(&stream->mutex);
7473