X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fjffs2%2Fsuper.c;h=b657c55d5f51fac0660da622ca5adf104139c984;hb=1be35e94e1da3669db492995cd2c8b1a37016b11;hp=c37fb163ef811f86c629add0c3d9d72fbd787372;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index c37fb163e..b657c55d5 100644 --- a/fs/jffs2/super.c +++ b/fs/jffs2/super.c @@ -7,7 +7,7 @@ * * For licensing information, see the file 'LICENCE' in this directory. * - * $Id: super.c,v 1.97 2004/07/16 15:17:57 dwmw2 Exp $ + * $Id: super.c,v 1.90 2003/10/11 11:47:23 dwmw2 Exp $ * */ @@ -24,7 +24,6 @@ #include #include #include -#include "compr.h" #include "nodelist.h" static void jffs2_put_super(struct super_block *); @@ -267,7 +266,7 @@ static void jffs2_put_super (struct super_block *sb) jffs2_free_ino_caches(c); jffs2_free_raw_node_refs(c); kfree(c->blocks); - jffs2_flash_cleanup(c); + jffs2_nand_flash_cleanup(c); kfree(c->inocache_list); if (c->mtd->sync) c->mtd->sync(c->mtd); @@ -295,7 +294,7 @@ static int __init init_jffs2_fs(void) int ret; printk(KERN_INFO "JFFS2 version 2.2." -#ifdef CONFIG_JFFS2_FS_NAND +#ifdef CONFIG_FS_JFFS2_NAND " (NAND)" #endif " (C) 2001-2003 Red Hat, Inc.\n"); @@ -308,15 +307,15 @@ static int __init init_jffs2_fs(void) printk(KERN_ERR "JFFS2 error: Failed to initialise inode cache\n"); return -ENOMEM; } - ret = jffs2_compressors_init(); + ret = jffs2_zlib_init(); if (ret) { - printk(KERN_ERR "JFFS2 error: Failed to initialise compressors\n"); + printk(KERN_ERR "JFFS2 error: Failed to initialise zlib workspaces\n"); goto out; } ret = jffs2_create_slab_caches(); if (ret) { printk(KERN_ERR "JFFS2 error: Failed to initialise slab caches\n"); - goto out_compressors; + goto out_zlib; } ret = register_filesystem(&jffs2_fs_type); if (ret) { @@ -327,8 +326,8 @@ static int __init init_jffs2_fs(void) out_slab: jffs2_destroy_slab_caches(); - out_compressors: - jffs2_compressors_exit(); + out_zlib: + jffs2_zlib_exit(); out: return ret; } @@ -337,7 +336,7 @@ static void __exit exit_jffs2_fs(void) { unregister_filesystem(&jffs2_fs_type); jffs2_destroy_slab_caches(); - jffs2_compressors_exit(); + jffs2_zlib_exit(); kmem_cache_destroy(jffs2_inode_cachep); }