.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2013 |
---|
3 | 4 | * 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. |
---|
7 | 5 | */ |
---|
8 | 6 | |
---|
9 | 7 | #include <linux/types.h> |
---|
10 | 8 | #include <linux/mutex.h> |
---|
11 | 9 | #include <linux/slab.h> |
---|
12 | | -#include <linux/buffer_head.h> |
---|
| 10 | +#include <linux/bio.h> |
---|
13 | 11 | |
---|
14 | 12 | #include "squashfs_fs.h" |
---|
15 | 13 | #include "squashfs_fs_sb.h" |
---|
.. | .. |
---|
61 | 59 | } |
---|
62 | 60 | } |
---|
63 | 61 | |
---|
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) |
---|
66 | 65 | { |
---|
67 | 66 | int res; |
---|
68 | 67 | struct squashfs_stream *stream = msblk->stream; |
---|
69 | 68 | |
---|
70 | 69 | mutex_lock(&stream->mutex); |
---|
71 | | - res = msblk->decompressor->decompress(msblk, stream->stream, bh, b, |
---|
| 70 | + res = msblk->decompressor->decompress(msblk, stream->stream, bio, |
---|
72 | 71 | offset, length, output); |
---|
73 | 72 | mutex_unlock(&stream->mutex); |
---|
74 | 73 | |
---|