From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx137.postini.com [74.125.245.137]) by kanga.kvack.org (Postfix) with SMTP id 72FF86B0083 for ; Wed, 23 May 2012 11:39:12 -0400 (EDT) Received: by obbwd18 with SMTP id wd18so16966939obb.14 for ; Wed, 23 May 2012 08:39:11 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20120518161932.147485968@linux.com> References: <20120518161906.207356777@linux.com> <20120518161932.147485968@linux.com> Date: Thu, 24 May 2012 00:39:11 +0900 Message-ID: Subject: Re: [RFC] Common code 09/12] slabs: Extract a common function for kmem_cache_destroy From: JoonSoo Kim Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org List-ID: To: Christoph Lameter Cc: Pekka Enberg , linux-mm@kvack.org, David Rientjes , Matt Mackall , Glauber Costa , Alex Shi > +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. -- 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