Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 12 Jul 2002 16:55:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 12 Jul 2002 16:55:40 -0400 Received: from ns.suse.de ([213.95.15.193]:20239 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id ; Fri, 12 Jul 2002 16:55:39 -0400 Date: Fri, 12 Jul 2002 22:58:28 +0200 From: Dave Jones To: Paul Menage Cc: viro@math.psu.edu, linux-kernel@vger.kernel.org Subject: Re: [RFC] Rearranging struct dentry for cache affinity Message-ID: <20020712225828.E18503@suse.de> Mail-Followup-To: Dave Jones , Paul Menage , viro@math.psu.edu, linux-kernel@vger.kernel.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from pmenage@ensim.com on Fri, Jul 12, 2002 at 01:38:35PM -0700 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 758 Lines: 22 On Fri, Jul 12, 2002 at 01:38:35PM -0700, Paul Menage wrote: > - dentry->d_vfs_flags |= DCACHE_REFERENCED; > +#ifdef CONFIG_SMP > + if(!(dentry->d_vfs_flags & DCACHE_REFERENCED)) > +#endif > + dentry->d_vfs_flags |= DCACHE_REFERENCED; Yuck. Is doing this conditional on UP really a measurable effect? Somehow I doubt it's worth this ugliness. If you must microoptimise to this level, at least try and keep the code clean. Dave -- | Dave Jones. http://www.codemonkey.org.uk | SuSE Labs - 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/