Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751149Ab3JDFLv (ORCPT ); Fri, 4 Oct 2013 01:11:51 -0400 Received: from g6t0184.atlanta.hp.com ([15.193.32.61]:26149 "EHLO g6t0184.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750831Ab3JDFLt (ORCPT ); Fri, 4 Oct 2013 01:11:49 -0400 Message-ID: <524DF8D0.2080307@hp.com> Date: Thu, 03 Oct 2013 17:08:00 -0600 From: Thavatchai Makphaibulchoke User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Andreas Dilger CC: T Makphaibulchoke , "Theodore Ts'o" , "linux-ext4@vger.kernel.org List" , Linux Kernel Mailing List , aswin@hp.com Subject: Re: [PATCH 2/2] fs/ext4/namei.c: reducing contention on s_orphan_lock mmutex References: <1380728219-60784-1-git-send-email-tmac@hp.com> <1380728219-60784-2-git-send-email-tmac@hp.com> <139DD231-CA27-40C1-BBB5-B66B29640DC0@dilger.ca> In-Reply-To: <139DD231-CA27-40C1-BBB5-B66B29640DC0@dilger.ca> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 875 Lines: 26 On 10/03/2013 06:41 PM, Andreas Dilger wrote: >> + struct inode *next_inode; > > Stack space in the kernel is not so abundant that all (or any?) of these > should get their own local variable. > >> >> - if (!EXT4_SB(sb)->s_journal) > > Same here. > > > Cheers, Andreas Thanks Andreas for the comments. On larger machines with processors with lots of register, with the compiler optimization I don't think it matters whether stack variables or repeated common expressions are used. On smaller machines with processors with limited number of registers, this will be a problem. I'll fix these on my rework. Thanks, Mak. -- 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/