Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp208098lqo; Thu, 9 May 2024 18:25:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWn57BfT0iv1+APrM1sam2+XIMo/H7Q7O+V7hlA3Yg19/6PxVbv7UdL/gbqFxjmqJU1tKLSI8fBYQMX+P+2MD3CSctNZrw4I4/j9pc6UQ== X-Google-Smtp-Source: AGHT+IED0bd+mfnKiNYyMiJu556Fdm4fPUF2UNHKgmA+DUa3BstLMzCr93dArBudoadfbrFhUmhm X-Received: by 2002:adf:f5c6:0:b0:34c:8bc5:37a6 with SMTP id ffacd0b85a97d-3504a96d66dmr754543f8f.67.1715304353679; Thu, 09 May 2024 18:25:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715304353; cv=pass; d=google.com; s=arc-20160816; b=iX6rgcpDBYhxllSOiN1zes+8lQ/MSm3FfdLBYXjPKiB5gCtDqA4YITi2ToC8ncnqVD Hi5FkhbWmUzNBJMrUEqjrKBDFmxseOXuObFCHyCSdBrnuRGC6GMYLBJaTuj3Xfbd5FLe F7a5nq9C88YLNCZiRvrs7Bj2An1Ss3sXszTiArcuZm/yDc/Lvkje3WaXGEmTmoSMy/VW oNIc19qif2MH0LDBuhchPaKeQXRKWESpw7VvLS0sbQPfE36XGFxv7SVEI5pZZASU6B8J xh/7cbU5cncXKrAedlQuc2zve3XBeWyiktDIrwlsKc0o9ax/HITAmCEuvMQYrFMcW68t 3Mdg== 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=zs7b0lEaSzJiP/RpZxAIBV1QwgR1BnMi/jL2DLDLlU0=; fh=ox++7A8yAJwV7L7WW9rN9jXxvkgDSL3rCldPnpw2nqQ=; b=nKbezSHIL9Oc1o/k/AU4Khv6g8W7mm7ttCbLl+jSeOhgDl811kFIWNKquLHVRXg4yA MKyp2oaBo/7ZVaTxCRq+AlF/7HvcC1FuLQNjLtraMXenjbkdbSpR1eQfk0t38BVrb5xF jNE/ap2Jwsu50o1F065uKKVtFDTd+dx7/Ok9BWVS/81NQr84rk3v52nUob1iDSEgWFUJ 8W2L2ly1lI4tfKRxHaeZ3XSFsyVIpIU+7ePgET4hYd6ckNpIbHne8LXPk7oqpcfpiLfv XFv0Tr4MX5iSUZdNXmKmVa4ryepSsUv9jqWkn8Ai+z+iCVUl8CnDgyrvHzPlNgA3pBGh xMYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NsgwgbYB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2439-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba2da9si133516466b.530.2024.05.09.18.25.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 18:25:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NsgwgbYB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2439-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 6950D1F23042 for ; Fri, 10 May 2024 01:25:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9364513B7A6; Fri, 10 May 2024 01:25:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NsgwgbYB" X-Original-To: linux-ext4@vger.kernel.org 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 117C013AA59; Fri, 10 May 2024 01:25:41 +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=1715304342; cv=none; b=aqRdpp9dysYD5AucXmKpQsuh3qWEom08ZSfGN3aeQZCDOhua27TqteVI070ctPF0XH1WxMACr/1NPDKWiYg5T4FWAVXquYsf7RLEV3EmJpqREsntrck3krxgLCmYTdm65rjv2y+Ad7pfLLknENfyUsGwrRI1/cHwa7PnUe3Ms3c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715304342; c=relaxed/simple; bh=AcFmfnE2SjS9n37wQ7KWN0OORIobOYPwAzFfJDvf0d0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hI4iCwQLsaNy3PkI7CK5gFyl9qeBXEcO1hJU0Coc+PjUrJZhAn8h4XCymgW3OOfSoKrGkJfFFbxUaYZxRbnd/UsgsoBp0RYqGrVFk6gnyxQD1u1cxch3PNxIQLbT7IK9D+5AxhWTd5Hhoz05koc7gkNkpxUmKH/yBMCil6swz+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NsgwgbYB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C48E6C116B1; Fri, 10 May 2024 01:25:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715304341; bh=AcFmfnE2SjS9n37wQ7KWN0OORIobOYPwAzFfJDvf0d0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NsgwgbYBQqgOLYZTyt2LSVvl3VOMIZc2ON7mdOseE1h+gq4YbC/GeE0ME8wFWBU0e Snm7cJatEr62rHkiAXBemkZz/f/3MUfBdApBnBIzYHQYtq6ytrajNPc7hmijIQDM8E 7Snvyo1CwyW6+Mg808mRm0KCtK1F0UPJYddyjY/Vd6rfU2TTGdQHFQ/XfuI3CmOFrb MJkjynpB3Uyr7pLve/0GoKrcxzxTsy86bM/QI7/slSebH+8EAwbggMxFkPo58gJq+g qblgZwXPnHfN970fUaAEQ5unqFYrFLfS1ufHuidziOXN7U2PRzWmru96EqBTE2TUUu czkl/is1dHVCw== Date: Fri, 10 May 2024 01:25:39 +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 8/9] ext4: Move CONFIG_UNICODE defguards into the code flow Message-ID: <20240510012539.GG1110919@google.com> References: <20240405121332.689228-1-eugen.hristev@collabora.com> <20240405121332.689228-9-eugen.hristev@collabora.com> Precedence: bulk X-Mailing-List: linux-ext4@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-9-eugen.hristev@collabora.com> On Fri, Apr 05, 2024 at 03:13:31PM +0300, Eugen Hristev wrote: > From: Gabriel Krisman Bertazi > > Instead of a bunch of ifdefs, make the unicode built checks part of the > code flow where possible, as requested by Torvalds. > > Signed-off-by: Gabriel Krisman Bertazi > [eugen.hristev@collabora.com: port to 6.8-rc3] > Signed-off-by: Eugen Hristev > --- > fs/ext4/crypto.c | 10 ++-------- > fs/ext4/ext4.h | 33 +++++++++++++++++++++------------ > fs/ext4/namei.c | 14 +++++--------- > fs/ext4/super.c | 4 +--- > 4 files changed, 29 insertions(+), 32 deletions(-) Reviewed-by: Eric Biggers - Eric