From: Milton Miller Subject: [PATCH 1/9] mm: add generic adaptive large memory allocation APIs Date: Thu, 13 May 2010 09:39:36 -0500 Message-ID: <1273761576_4060@mail4.comsite.net> References: <1273744285-8128-1-git-send-email-xiaosuo@gmail.com> 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 , Changli Gao To: Changli Gao Return-path: In-Reply-To: <1273744285-8128-1-git-send-email-xiaosuo@gmail.com> Sender: owner-linux-mm@kvack.org List-Id: linux-ext4.vger.kernel.org On Thu, 13 May 2010 at 17:51:25 +0800, Changli Gao wrote: > +static inline void *kvcalloc(size_t n, size_t size) > +{ > + return __kvmalloc(n * size, __GFP_ZERO); > This needs multiply overflow checking like kcalloc. milton -- 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/ . Don't email: email@kvack.org