aboutsummaryrefslogtreecommitdiffstats
path: root/fs/squashfs/zlib_wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/squashfs/zlib_wrapper.c')
-rw-r--r--fs/squashfs/zlib_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/squashfs/zlib_wrapper.c b/fs/squashfs/zlib_wrapper.c
index 8727caba6882..2ec24d128bce 100644
--- a/fs/squashfs/zlib_wrapper.c
+++ b/fs/squashfs/zlib_wrapper.c
@@ -69,7 +69,7 @@ static int zlib_uncompress(struct squashfs_sb_info *msblk, void *strm,
69 int zlib_err, zlib_init = 0, k = 0; 69 int zlib_err, zlib_init = 0, k = 0;
70 z_stream *stream = strm; 70 z_stream *stream = strm;
71 71
72 stream->avail_out = PAGE_CACHE_SIZE; 72 stream->avail_out = PAGE_SIZE;
73 stream->next_out = squashfs_first_page(output); 73 stream->next_out = squashfs_first_page(output);
74 stream->avail_in = 0; 74 stream->avail_in = 0;
75 75
@@ -85,7 +85,7 @@ static int zlib_uncompress(struct squashfs_sb_info *msblk, void *strm,
85 if (stream->avail_out == 0) { 85 if (stream->avail_out == 0) {
86 stream->next_out = squashfs_next_page(output); 86 stream->next_out = squashfs_next_page(output);
87 if (stream->next_out != NULL) 87 if (stream->next_out != NULL)
88 stream->avail_out = PAGE_CACHE_SIZE; 88 stream->avail_out = PAGE_SIZE;
89 } 89 }
90 90
91 if (!zlib_init) { 91 if (!zlib_init) {