From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9219DC47083 for ; Wed, 2 Jun 2021 19:54:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 739B6613E9 for ; Wed, 2 Jun 2021 19:54:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbhFBT4S (ORCPT ); Wed, 2 Jun 2021 15:56:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:44628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbhFBT4P (ORCPT ); Wed, 2 Jun 2021 15:56:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1D97B613EE; Wed, 2 Jun 2021 19:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622663672; bh=7IekTvQ7CS5QD1TW6WqSq7COBCKEeOkMr3jBpyWe7ik=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FRi2utBngfyVZe6SNXoEqEEWfnwtYuiD+nA0zi9s8YwkvF7J9sLnFeNxeWNIx2Dca cOeYCfXYeHPZJOvIBycxDHDkR6fISULpZ+WRGwub/XKBI13m2dg3j3U9Mlc5LxCCPG /s5rY7811rmKQ4dZnP0GCtX/6ttaRq/LT4txxINCh/GMSlUQdVVyyL+14Z/Yrb6Q0o FL5O8MfVLRbGFt1Vu7cBqlz8QiBidKXrQxjf8eyYhh0ho2rE7EQKjxUfUTkYSGIBi2 yLeG8mBoxwrNGGi3v25bVRESRr65vm9nf2db3k0VWBQVQ2MiPQrNAYpoMlC7zDEdJd n+IapTdxt7TGA== Date: Wed, 2 Jun 2021 12:54:30 -0700 From: Eric Biggers To: Daniel Rosenberg Cc: Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Gabriel Krisman Bertazi , kernel-team@android.com Subject: Re: [PATCH 2/2] f2fs: Advertise encrypted casefolding in sysfs Message-ID: References: <20210602041539.123097-1-drosen@google.com> <20210602041539.123097-3-drosen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210602041539.123097-3-drosen@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Wed, Jun 02, 2021 at 04:15:39AM +0000, Daniel Rosenberg wrote: > +#ifdef CONFIG_UNICODE > +F2FS_FEATURE_RO_ATTR(encrypted_casefold, FEAT_ENCRYPTED_CASEFOLD); > +#endif Shouldn't it be defined(CONFIG_UNICODE) && defined(CONFIG_FS_ENCRYPTION)? > #endif > #ifdef CONFIG_BLK_DEV_ZONED > F2FS_FEATURE_RO_ATTR(block_zoned, FEAT_BLKZONED); > @@ -815,6 +823,9 @@ static struct attribute *f2fs_feat_attrs[] = { > #ifdef CONFIG_FS_ENCRYPTION > ATTR_LIST(encryption), > ATTR_LIST(test_dummy_encryption_v2), > +#ifdef CONFIG_UNICODE > + ATTR_LIST(encrypted_casefold), > +#endif Likewise here. - Eric