From: Changli Gao Subject: Re: [PATCH 1/9] mm: add generic adaptive large memory allocation APIs Date: Thu, 13 May 2010 22:49:26 +0800 Message-ID: References: <1273744285-8128-1-git-send-email-xiaosuo@gmail.com> <1273761576_4060@mail4.comsite.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: akpm@linux-foundation.org, Hoang-Nam Nguyen , Christoph Raisch , Roland Dreier , Sean Hefty , Hal Rosenstock , Divy Le Ray , "James E.J. Bottomley" , "Theodore Ts'o" , Andreas Dilger , Alexander Viro , Paul Menage , Li Zefan , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-scsi@vger.kernel.org, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, containers@lists.linux-foundation.org, Eric Dumazet , Tetsuo Handa , Peter Zijlstra To: Milton Miller Return-path: Received: from mail-pv0-f174.google.com ([74.125.83.174]:58568 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756219Ab0EMOtr convert rfc822-to-8bit (ORCPT ); Thu, 13 May 2010 10:49:47 -0400 In-Reply-To: <1273761576_4060@mail4.comsite.net> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Thu, May 13, 2010 at 10:39 PM, Milton Miller wrote= : > On Thu, 13 May 2010 at 17:51:25 +0800, Changli Gao wrote: > >> +static inline void *kvcalloc(size_t n, size_t size) >> +{ >> + =C2=A0 =C2=A0 return __kvmalloc(n * size, __GFP_ZERO); >> > > This needs multiply overflow checking like kcalloc. > Thanks. --=20 Regards=EF=BC=8C Changli Gao(xiaosuo@gmail.com) -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html