From mboxrd@z Thu Jan 1 00:00:00 1970 From: tytso@mit.edu Subject: Re: [PATCH] ext4: remove unnecessary operation in ext4_mb_regular_allocator() Date: Mon, 22 Mar 2010 14:26:45 -0400 Message-ID: <20100322182645.GI11560@thunk.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-ext4 , Andreas Dilger , Dave Kleikamp To: jing zhang Return-path: Received: from thunk.org ([69.25.196.29]:48368 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751884Ab0CVS07 (ORCPT ); Mon, 22 Mar 2010 14:26:59 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: On Mon, Mar 22, 2010 at 10:35:54PM +0800, jing zhang wrote: > From: Jing Zhang > > Date: Mon Mar 22 22:20:38 2010 > > 1, In one of the hot functions in mballoc.c, unnecessary operation on > struct ext4_group_desc *desc; > is removed. > > 2, Unlike spin_lock() and spin_unlock(), ext4_mb_load_buddy() is > companied by ext4_mb_release_desc. And it is hard, at least for me, to > get sure that ext4_mb_release_desc has little to do with struct > ext4_group_desc, and for those readers as well, whose native language > is not English. It seems the choice includes > ext4_mb_release_buddy > ext4_mb_put_buddy > ext4_mb_unload_buddy > and I like the last one. Please separate things like this into two separate patches; it makes them much easier to review. Thanks, - Ted