diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-08-31 17:54:18 +0200 | 
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-08-31 18:05:25 +0200 | 
| commit | bbe69aa57a7374b51242b95a54eefcf0d0393b7e (patch) | |
| tree | c45e48d11cc9cb81a57c8c27f7243863b117cec8 /lib/decompress_inflate.c | |
| parent | a417887637e862b434b293404f2a31ad1f282a58 (diff) | |
| parent | 326ba5010a5429a5a528b268b36a5900d4ab0eba (diff) | |
Merge commit 'v2.6.31-rc8' into core/locking
Merge reason: we were on -rc4, move to -rc8 before applying
              a new batch of locking infrastructure changes.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib/decompress_inflate.c')
| -rw-r--r-- | lib/decompress_inflate.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/decompress_inflate.c b/lib/decompress_inflate.c index e36b296fc9f8..68dfce59c1b8 100644 --- a/lib/decompress_inflate.c +++ b/lib/decompress_inflate.c @@ -19,13 +19,13 @@  #include "zlib_inflate/inflate.h"  #include "zlib_inflate/infutil.h" +#include <linux/slab.h>  #endif /* STATIC */  #include <linux/decompress/mm.h> -#include <linux/slab.h> -#define INBUF_LEN (16*1024) +#define GZIP_IOBUF_SIZE (16*1024)  /* Included from initramfs et al code */  STATIC int INIT gunzip(unsigned char *buf, int len, @@ -55,7 +55,7 @@ STATIC int INIT gunzip(unsigned char *buf, int len,  	if (buf)  		zbuf = buf;  	else { -		zbuf = malloc(INBUF_LEN); +		zbuf = malloc(GZIP_IOBUF_SIZE);  		len = 0;  	}  	if (!zbuf) { @@ -77,7 +77,7 @@ STATIC int INIT gunzip(unsigned char *buf, int len,  	}  	if (len == 0) -		len = fill(zbuf, INBUF_LEN); +		len = fill(zbuf, GZIP_IOBUF_SIZE);  	/* verify the gzip header */  	if (len < 10 || @@ -113,7 +113,7 @@ STATIC int INIT gunzip(unsigned char *buf, int len,  	while (rc == Z_OK) {  		if (strm->avail_in == 0) {  			/* TODO: handle case where both pos and fill are set */ -			len = fill(zbuf, INBUF_LEN); +			len = fill(zbuf, GZIP_IOBUF_SIZE);  			if (len < 0) {  				rc = -1;  				error("read error");  | 
