lkml.org 
[lkml]   [2006]   [Aug]   [26]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 26 Aug 2006 11:31:47 -0400
FromBenjamin LaHaise <>
SubjectRe: [PATCH] Make kmem_cache_destroy() return void
On Sat, Aug 26, 2006 at 01:21:10AM +0400, Alexey Dobriyan wrote:
> un-, de-, -free, -destroy, -exit, etc functions should in general
> return void. Also,
> @@ -2411,7 +2410,6 @@ int kmem_cache_destroy(struct kmem_cache
>  		list_add(&cachep->next, &cache_chain);
>  		mutex_unlock(&cache_chain_mutex);
>  		unlock_cpu_hotplug();
> -		return 1;
>  	}
> 
>  	if (unlikely(cachep->flags & SLAB_DESTROY_BY_RCU))

Shouldn't this return, as otherwise there is a significant change in the 
code path followed.

		-ben
-- 
"Time is of no importance, Mr. President, only life is important."
Don't Email: <dont@kvack.org>.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-08-26 17:35    [from the cache]
©2003-2008