1 From 5f393ede3ddb5dd4cc2a9f243182fac45f1ce10b Mon Sep 17 00:00:00 2001
2 From: Phillip Lougher <phillip@lougher.demon.co.uk>
3 Date: Wed, 14 Oct 2009 04:07:54 +0100
4 Subject: [PATCH] Squashfs: add an extra parameter to the decompressor init function
6 Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
8 fs/squashfs/decompressor.h | 4 ++--
9 fs/squashfs/zlib_wrapper.c | 2 +-
10 2 files changed, 3 insertions(+), 3 deletions(-)
12 --- a/fs/squashfs/decompressor.h
13 +++ b/fs/squashfs/decompressor.h
17 struct squashfs_decompressor {
18 - void *(*init)(void);
19 + void *(*init)(struct squashfs_sb_info *);
21 int (*decompress)(struct squashfs_sb_info *, void **,
22 struct buffer_head **, int, int, int, int, int);
23 @@ -35,7 +35,7 @@ struct squashfs_decompressor {
25 static inline void *squashfs_decompressor_init(struct squashfs_sb_info *msblk)
27 - return msblk->decompressor->init();
28 + return msblk->decompressor->init(msblk);
31 static inline void squashfs_decompressor_free(struct squashfs_sb_info *msblk,
32 --- a/fs/squashfs/zlib_wrapper.c
33 +++ b/fs/squashfs/zlib_wrapper.c
36 #include "decompressor.h"
38 -static void *zlib_init(void)
39 +static void *zlib_init(struct squashfs_sb_info *dummy)
41 z_stream *stream = kmalloc(sizeof(z_stream), GFP_KERNEL);