patch-2.4.20 linux-2.4.20/fs/isofs/compress.c
Next file: linux-2.4.20/fs/isofs/inode.c
Previous file: linux-2.4.20/fs/iobuf.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/fs/isofs/compress.c
- Orig date:
Tue Nov 6 08:34:40 2001
diff -urN linux-2.4.19/fs/isofs/compress.c linux-2.4.20/fs/isofs/compress.c
@@ -36,7 +36,7 @@
#include <linux/smp_lock.h>
#include <linux/blkdev.h>
#include <linux/vmalloc.h>
-#include <linux/zlib_fs.h>
+#include <linux/zlib.h>
#include <asm/system.h>
#include <asm/uaccess.h>
@@ -209,7 +209,7 @@
stream.workspace = zisofs_zlib_workspace;
down(&zisofs_zlib_semaphore);
- zerr = zlib_fs_inflateInit(&stream);
+ zerr = zlib_inflateInit(&stream);
if ( zerr != Z_OK ) {
if ( err && zerr == Z_MEM_ERROR )
err = -ENOMEM;
@@ -250,7 +250,7 @@
}
}
ao = stream.avail_out; ai = stream.avail_in;
- zerr = zlib_fs_inflate(&stream, Z_SYNC_FLUSH);
+ zerr = zlib_inflate(&stream, Z_SYNC_FLUSH);
left_out = stream.avail_out;
if ( zerr == Z_BUF_ERROR && stream.avail_in == 0 )
continue;
@@ -291,7 +291,7 @@
fpage++;
}
}
- zlib_fs_inflateEnd(&stream);
+ zlib_inflateEnd(&stream);
z_eio:
up(&zisofs_zlib_semaphore);
@@ -339,7 +339,7 @@
return 0;
}
- zisofs_zlib_workspace = vmalloc(zlib_fs_inflate_workspacesize());
+ zisofs_zlib_workspace = vmalloc(zlib_inflate_workspacesize());
if ( !zisofs_zlib_workspace )
return -ENOMEM;
init_MUTEX(&zisofs_zlib_semaphore);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)