Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760492Ab2FDMd6 (ORCPT ); Mon, 4 Jun 2012 08:33:58 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:42376 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1760429Ab2FDMd5 (ORCPT ); Mon, 4 Jun 2012 08:33:57 -0400 Message-ID: <1338813236.8574.6.camel@joe2Laptop> Subject: Re: Is this code right in zram? From: Joe Perches To: Jerome Marchand Cc: John Moser , linux-kernel@vger.kernel.org Date: Mon, 04 Jun 2012 05:33:56 -0700 In-Reply-To: <4FCCA543.3030603@redhat.com> References: <4FC7E610.5060207@gmail.com> <4FCCA543.3030603@redhat.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 635 Lines: 21 On Mon, 2012-06-04 at 14:08 +0200, Jerome Marchand wrote: > It probably doesn't matter much. Likely true. > Apparently kcalloc() never got a lot > of success and kzalloc(sizeof(foo) * num_foos) type of allocation are > more popular. Likely false, especially in new code. If you did greps, perhaps you are including the k.alloc(sizeof(*foo), GFP) forms in your uses multiply counts. -- 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/