super.c (9b4f2e9576658c4e52d95dc8d309f51b2e2db096) | super.c (1a1d92c10dd24bbdc28b3d6e2d03ec199dd3a65b) |
---|---|
1/* 2 * super.c - NTFS kernel super block handling. Part of the Linux-NTFS project. 3 * 4 * Copyright (c) 2001-2006 Anton Altaparmakov 5 * Copyright (c) 2001,2002 Richard Russon 6 * 7 * This program/include file is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as published --- 3234 unchanged lines hidden (view full) --- 3243 "registration...\n"); 3244 err = -ENOMEM; 3245 } 3246 return err; 3247} 3248 3249static void __exit exit_ntfs_fs(void) 3250{ | 1/* 2 * super.c - NTFS kernel super block handling. Part of the Linux-NTFS project. 3 * 4 * Copyright (c) 2001-2006 Anton Altaparmakov 5 * Copyright (c) 2001,2002 Richard Russon 6 * 7 * This program/include file is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as published --- 3234 unchanged lines hidden (view full) --- 3243 "registration...\n"); 3244 err = -ENOMEM; 3245 } 3246 return err; 3247} 3248 3249static void __exit exit_ntfs_fs(void) 3250{ |
3251 int err = 0; 3252 | |
3253 ntfs_debug("Unregistering NTFS driver."); 3254 3255 unregister_filesystem(&ntfs_fs_type); | 3251 ntfs_debug("Unregistering NTFS driver."); 3252 3253 unregister_filesystem(&ntfs_fs_type); |
3256 3257 if (kmem_cache_destroy(ntfs_big_inode_cache) && (err = 1)) 3258 printk(KERN_CRIT "NTFS: Failed to destory %s.\n", 3259 ntfs_big_inode_cache_name); 3260 if (kmem_cache_destroy(ntfs_inode_cache) && (err = 1)) 3261 printk(KERN_CRIT "NTFS: Failed to destory %s.\n", 3262 ntfs_inode_cache_name); 3263 if (kmem_cache_destroy(ntfs_name_cache) && (err = 1)) 3264 printk(KERN_CRIT "NTFS: Failed to destory %s.\n", 3265 ntfs_name_cache_name); 3266 if (kmem_cache_destroy(ntfs_attr_ctx_cache) && (err = 1)) 3267 printk(KERN_CRIT "NTFS: Failed to destory %s.\n", 3268 ntfs_attr_ctx_cache_name); 3269 if (kmem_cache_destroy(ntfs_index_ctx_cache) && (err = 1)) 3270 printk(KERN_CRIT "NTFS: Failed to destory %s.\n", 3271 ntfs_index_ctx_cache_name); 3272 if (err) 3273 printk(KERN_CRIT "NTFS: This causes memory to leak! There is " 3274 "probably a BUG in the driver! Please report " 3275 "you saw this message to " 3276 "linux-ntfs-dev@lists.sourceforge.net\n"); | 3254 kmem_cache_destroy(ntfs_big_inode_cache); 3255 kmem_cache_destroy(ntfs_inode_cache); 3256 kmem_cache_destroy(ntfs_name_cache); 3257 kmem_cache_destroy(ntfs_attr_ctx_cache); 3258 kmem_cache_destroy(ntfs_index_ctx_cache); |
3277 /* Unregister the ntfs sysctls. */ 3278 ntfs_sysctl(0); 3279} 3280 3281MODULE_AUTHOR("Anton Altaparmakov <aia21@cantab.net>"); 3282MODULE_DESCRIPTION("NTFS 1.2/3.x driver - Copyright (c) 2001-2006 Anton Altaparmakov"); 3283MODULE_VERSION(NTFS_VERSION); 3284MODULE_LICENSE("GPL"); 3285#ifdef DEBUG 3286module_param(debug_msgs, bool, 0); 3287MODULE_PARM_DESC(debug_msgs, "Enable debug messages."); 3288#endif 3289 3290module_init(init_ntfs_fs) 3291module_exit(exit_ntfs_fs) | 3259 /* Unregister the ntfs sysctls. */ 3260 ntfs_sysctl(0); 3261} 3262 3263MODULE_AUTHOR("Anton Altaparmakov <aia21@cantab.net>"); 3264MODULE_DESCRIPTION("NTFS 1.2/3.x driver - Copyright (c) 2001-2006 Anton Altaparmakov"); 3265MODULE_VERSION(NTFS_VERSION); 3266MODULE_LICENSE("GPL"); 3267#ifdef DEBUG 3268module_param(debug_msgs, bool, 0); 3269MODULE_PARM_DESC(debug_msgs, "Enable debug messages."); 3270#endif 3271 3272module_init(init_ntfs_fs) 3273module_exit(exit_ntfs_fs) |