Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp207446lqo; Thu, 9 May 2024 18:24:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhoLbr0eTv6VB3nOtmVfRt3JZkDR6snLk8Zj2xSzlWKChlO5b+cwau5g44kUeljtHpxFbrP7t88TX3ctD/r4FoxEHjQwMdOrKkkQMKfg== X-Google-Smtp-Source: AGHT+IHxcxWd0KKAfYfV6mWRLvu2Xg2GRbVTRGIk/6wjYv4/4Qb8063uQHBfRnNkqOOuGr5BRsMN X-Received: by 2002:a17:907:9625:b0:a59:db0f:6bdd with SMTP id a640c23a62f3a-a5a2d5d56b7mr84157266b.44.1715304258117; Thu, 09 May 2024 18:24:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715304258; cv=pass; d=google.com; s=arc-20160816; b=RjnK3MUdzGXnzTuBuWa2+fvzwScKJa27Rl7J8vPB8MnvV39/saNzcdafLjoupMlnXE lC9ZNzUlDfhcl9TEI/sb+y6X7+4oaCcQe56ThuerJcuQQ6/s07Bs5NvpIQslhXGrSfeg BMKqNBGQ6PaQjzZ3NrtT/0st107xAHzdLGPeZh6UhS7FNtxgJiSseUPeDvv+YWa/4Qos 9FY+lhCpldVM6VLDEDJcyq+/yy+u4MUEGB5F3YgGYnc6xltvp9IrzZqfkIgxbI3uuiVr Uf0FLo0eFESKzhB3WC0UIYS3clIz6E5C+tz27CRtZ8P+WKxO6aYqnlKPO5wmmQsApD3m gzZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Dbcq9r4a1zuyNEODGiydTSBfojzJz8zigK0WVkCLQIg=; fh=ox++7A8yAJwV7L7WW9rN9jXxvkgDSL3rCldPnpw2nqQ=; b=NBZXMNLw25OYTBZV/iF0ckKewSsc3Wvyxu7QsRPiQDixrffeivhNCG34tXl8I1kBO0 nUDD3n+bz6zXxOSiKDA9LaA0+aMVXX2nKppCIoRU1+EwytP3Bu+7eBS0XulUbL3M3ty6 IOrXMxyqKoAJe2GHjeSVeWMSvbp8Efil6/MH6wN40sZGunXA2QsO/kwEjYZNFSVyGFui GtHW+a4qcBDpeImZPTPy9NbXqW9pTB7c9NlHdVqIz995n7jjBZ7MvzwxZ5bfNzVQ0VwZ am1irLDlDIXwNAqfsEpakJTGeG2sfQcPEwIooIHa0ENYDKBgyAXlOAy6P/YhfuBVREDS aiZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WznK5tlS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba3814si136050266b.500.2024.05.09.18.24.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 18:24:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WznK5tlS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D39141F23287 for ; Fri, 10 May 2024 01:24:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79DCF13BAFB; Fri, 10 May 2024 01:23:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WznK5tlS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90EAB13BACC; Fri, 10 May 2024 01:23:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715304236; cv=none; b=KQy9f1HugCmhxs4FlZzUv2Eu70JtdeQCaBQke4o2vkCXPSHhocqHTjo+i/rvzpwSYGLcQ7GbYbIGTEKtF+pwd4D2FK/OZYFwZut60oQYB0tJF89yItWilcMNZP+gUeL+6zH5xvsPx9I5UK2jSXGzvyzypsWOX/rOryAYXZRbXi4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715304236; c=relaxed/simple; bh=tIyORSm6DKfQad0bExBOsbDG3bWKnUdmlkmb3uP/VY0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BpOq2fGaGZadJobV0ukgyEhg7+qDc0Xxd1E3tdydAgcx47E/GClvejYeCp0jRI1FBa7xCtT4rCWSVn60EVSHF82whpY1nL8nfVWHis0kvg2XtgfZJUrG8tGk8XSXuLDaspX+/PLQ9dfxDk3NIP6K/asmckQzacegsFLOMkqggJA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WznK5tlS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF57BC116B1; Fri, 10 May 2024 01:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715304236; bh=tIyORSm6DKfQad0bExBOsbDG3bWKnUdmlkmb3uP/VY0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WznK5tlS6cb5FZPFvUTkVUxaKLtE9OHpwcxChR6TS1xr6gla47v2Fspn4KO+5bMWf 6GC1OpBsnFOvoVGWxDT429Rjoh5zrG5OXloyP8cY+faxaCOILrCw/BPSbpDUI5t2n/ y8LTRZiAi2CXSnslUU+CNPKcPDs9+Qt5tJGOI1vVbqZ7LVoFG45WeNVhavY7Z9v4Yv /Sfh+RxxkkjKqs8PnO8BcqL4bViFOS1jLEdFcD5b84+MEjw8LDue+z3nm0ssrbkX1f mk2bryTrOWHbSGklza+C9N+W9S9E+cacdVmZcP7ZBaImRxahllsC17zGvCoK7fOaNG Hx/6ELgMit/ng== Date: Fri, 10 May 2024 01:23:54 +0000 From: Eric Biggers To: Eugen Hristev Cc: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, jaegeuk@kernel.org, chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, krisman@suse.de, Gabriel Krisman Bertazi Subject: Re: [PATCH v16 4/9] ext4: Reuse generic_ci_match for ci comparisons Message-ID: <20240510012354.GC1110919@google.com> References: <20240405121332.689228-1-eugen.hristev@collabora.com> <20240405121332.689228-5-eugen.hristev@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240405121332.689228-5-eugen.hristev@collabora.com> On Fri, Apr 05, 2024 at 03:13:27PM +0300, Eugen Hristev wrote: > From: Gabriel Krisman Bertazi > > Instead of reimplementing ext4_match_ci, use the new libfs helper. > > It also adds a comment explaining why fname->cf_name.name must be > checked prior to the encryption hash optimization, because that tripped > me before. > > Signed-off-by: Gabriel Krisman Bertazi > Signed-off-by: Eugen Hristev > --- > fs/ext4/namei.c | 91 +++++++++++++++---------------------------------- > 1 file changed, 27 insertions(+), 64 deletions(-) Reviewed-by: Eric Biggers - Eric