Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp843220pxj; Wed, 2 Jun 2021 12:57:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv7L1U8M4zIE2EyTuNmtpG8fAQ/tdIwTPX+sz/t6HE1q1OYQUUpgO5NElx2KvqXrpSKgjn X-Received: by 2002:a17:906:26cb:: with SMTP id u11mr36698131ejc.385.1622663878118; Wed, 02 Jun 2021 12:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622663878; cv=none; d=google.com; s=arc-20160816; b=a1yOLoWEbuhC8uecUEubndDbcdor/zkdcDs1OjmLQelHTo7FqPCULMSMN5D9fr9lV1 LTYLCT72xCY25j/h4GjB/NT2vs5+Owr0NpMsV0FIn/f1IDH55gmrdkm1FoIq/aaFTOsy ldMRHaQuLGYh9mXVKA98iDaoGKtev3GinMe6pkMLYp9mCeCAqixecQ89lPjGvLpbiKN7 o5nKXoUfo+6wSgJ8O1wGtdfehJtvC4qJhDKBMLQfGWoWZr2CiDFvUMeTiAUr4Oz0CuRF s3+oAsZ3BX+yYc/YFPxHA0Z1pSnxUcdsPwSoracbX5cD9lRyufYhvlAZLmyskxWRr8y2 5+bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gnb6uAHPUUtbAZoHTC44cWwOEVh3RRu1AQKmnIeaK50=; b=LdrKxdiS9IUDEd6zLGyNAEWDHCNXtwxwPURjl/hxDoeQmUMAqGnwGCJzddDQmsvPFA Acap8nIDR/yzfaFE4/VMNw0PP4ccK9Dd9Y4omkZcSaR46Mq/8Pmtx09dNh4B7ebylvf5 V+GPOkONGZZvf2ezg9Rnn4zQeB957GddDu8mVA9ymU0CYjyfSDdiJ9/gb4EtzFlRGK64 Rw8v77ms1WAgnXHcuBriqGJozbE3fYHWwkv5JOM/xKw6wsYOZaoCCZ9HW35Gwe4ZjAf/ tG4cxNkUuPfz3Ri6S67H0HlEvBItxleVzD06nN+JhcZ8LLGQXaxDpNpkb/g+Nf9hP7eB o5Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FRi2utBn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k22si560164ejd.339.2021.06.02.12.57.34; Wed, 02 Jun 2021 12:57:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FRi2utBn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229738AbhFBT4S (ORCPT + 99 others); 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-kernel@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