[Oracleasm-commits] jlbec commits r371 - trunk/kernel

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Feb 8 12:08:36 PST 2007


Author: jlbec
Date: 2007-02-08 12:08:36 -0800 (Thu, 08 Feb 2007)
New Revision: 371

Modified:
   trunk/kernel/
   trunk/kernel/oracleasm.c
Log:

oracleasm: kmem_cache_destroy() is now void.

Recent kernels have changed kmem_cache_destroy() to void.  This is quite
alright, as it can only BUG anyway.  We've been checking some of the
returns and not others.  This changes the code to ignore all
kmem_cache_destroy() return values.  This works on all kernel versions.




Property changes on: trunk/kernel
___________________________________________________________________
Name: svn:ignore
   - *.sw?
.*.d
stamp-md5
.*.cmd
*.ko
.tmp_versions
oracleasm.mod.c
Modules.symvers

   + *.sw?
.*.d
stamp-md5
.*.cmd
*.ko
.tmp_versions
oracleasm.mod.c
Modules.symvers
Module.symvers


Modified: trunk/kernel/oracleasm.c
===================================================================
--- trunk/kernel/oracleasm.c	2007-02-07 02:31:52 UTC (rev 370)
+++ trunk/kernel/oracleasm.c	2007-02-08 20:08:36 UTC (rev 371)
@@ -499,8 +499,7 @@
 
 static void destroy_inodecache(void)
 {
-	if (kmem_cache_destroy(asmfs_inode_cachep))
-		printk(KERN_INFO "asmfs_inode_cache: not all structures were freed\n");
+	kmem_cache_destroy(asmfs_inode_cachep);
 }
 
 static int init_requestcache(void)
@@ -516,8 +515,7 @@
 
 static void destroy_requestcache(void)
 {
-	if (kmem_cache_destroy(asm_request_cachep))
-		printk(KERN_INFO "asm_request_cache: not all structures were freed\n");
+	kmem_cache_destroy(asm_request_cachep);
 }
 
 




More information about the Oracleasm-commits mailing list