From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx128.postini.com [74.125.245.128]) by kanga.kvack.org (Postfix) with SMTP id 158D76B0083 for ; Wed, 23 May 2012 11:42:23 -0400 (EDT) Date: Wed, 23 May 2012 10:42:19 -0500 (CDT) From: Christoph Lameter Subject: Re: [RFC] Common code 09/12] slabs: Extract a common function for kmem_cache_destroy In-Reply-To: Message-ID: References: <20120518161906.207356777@linux.com> <20120518161932.147485968@linux.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463811839-964558924-1337787741=:30940" Sender: owner-linux-mm@kvack.org List-ID: To: JoonSoo Kim Cc: Pekka Enberg , linux-mm@kvack.org, David Rientjes , Matt Mackall , Glauber Costa , Alex Shi This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811839-964558924-1337787741=:30940 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 24 May 2012, JoonSoo Kim wrote: > > +void __kmem_cache_destroy(struct kmem_cache *s) > > +{ > > + =A0 =A0 =A0 kfree(s); > > + =A0 =A0 =A0 sysfs_slab_remove(s); > > =A0} > > -EXPORT_SYMBOL(kmem_cache_destroy); > > sysfs_slab_remove(s) -> kfree(s) is correct order. > If not, it will break the system. Ok. Changed. ---1463811839-964558924-1337787741=:30940-- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org