From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ted Ts'o Subject: Re: ext4: Take advantage of kmem_cache_zalloc() in ext4_init_io_end() Date: Sun, 19 Dec 2010 21:44:55 -0500 Message-ID: <20101220024455.GB24990@thunk.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Andreas Dilger To: Jesper Juhl Return-path: Received: from thunk.org ([69.25.196.29]:47090 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751576Ab0LTCo7 (ORCPT ); Sun, 19 Dec 2010 21:44:59 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: On Thu, Dec 09, 2010 at 12:17:34PM -0000, Jesper Juhl wrote: > Take advantage of kmem_cache_zalloc(). Save a memset() call in > ext4_init_io_end() and save a few bytes. > > Before: > [jj@dragon linux-2.6]$ size fs/ext4/page-io.o > text data bss dec hex filename > 3016 0 624 3640 e38 fs/ext4/page-io.o > After: > [jj@dragon linux-2.6]$ size fs/ext4/page-io.o > text data bss dec hex filename > 3000 0 624 3624 e28 fs/ext4/page-io.o > > Signed-off-by: Jesper Juhl Thanks, added to the ext4 patch queue. - Ted