From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754464AbYJOUbn (ORCPT ); Wed, 15 Oct 2008 16:31:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751758AbYJOUbd (ORCPT ); Wed, 15 Oct 2008 16:31:33 -0400 Received: from casper.infradead.org ([85.118.1.10]:48985 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751507AbYJOUbc (ORCPT ); Wed, 15 Oct 2008 16:31:32 -0400 Date: Wed, 15 Oct 2008 16:31:19 -0400 From: Arjan van de Ven To: Jiri Slaby Cc: Linus Torvalds , Ingo Molnar , Alan Cox , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: GIT head no longer boots on x86-64 Message-ID: <20081015163119.26595b8e@infradead.org> In-Reply-To: <48F60D56.6040209@gmail.com> References: <1223910693-28693-1-git-send-email-jirislaby@gmail.com> <20081013164717.7a21084a@lxorguk.ukuu.org.uk> <20081015115153.GA16413@elte.hu> <48F60D56.6040209@gmail.com> Organization: Intel X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.12; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Oct 2008 17:33:42 +0200 Jiri Slaby wrote: > Users usually do > is_vmalloc_addr(a) ? vfree(a) : kfree(a); > Even there it makes more sense to me. > I would like to point out that I greatly dislike any and all such abuses. Either you vmalloc something or you kmalloc it. Doing it dynamic with no way to tell? Horrible. (in fact I might do a patch in the opposite direction; have vmalloc() be fancy and internally try kmalloc first, if it fails, then do the expensive stuff) but really, you need to know what you allocated. -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org