From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [PATCH] dcache: faster dentry_cmp() Date: Wed, 15 Feb 2012 21:20:53 +0100 Message-ID: <20120215202053.GD22014@one.firstfloor.org> References: <20120214224526.GA3478@p183.telecom.by> <20120215081634.GC3306@p183.telecom.by> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andi Kleen , viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, npiggin@kernel.dk To: Alexey Dobriyan Return-path: Received: from one.firstfloor.org ([213.235.205.2]:44346 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753132Ab2BOUU4 (ORCPT ); Wed, 15 Feb 2012 15:20:56 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: > > This requires terminating dentry names with 1-3 NULs. > > Al, can we afford such beauty? > > Hmm. > > At least, in link_path_walk(), there is no room to insert NULs. We don't necessarily need to pad. It's enough to use the word compare as a fast path. Of course memcpy should do it already, but it may be inefficient for small strings. -Andi > -- ak@linux.intel.com -- Speaking for myself only.