Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp972460pxj; Wed, 2 Jun 2021 16:51:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcnsZQjc6SkCRBnmsA9c+1Bsw8MIVquYBwcIaoQOYF0ThMBbRA7Hs2dT+6bZFzbcKOBJ56 X-Received: by 2002:a05:6402:3c1:: with SMTP id t1mr25946133edw.270.1622677903093; Wed, 02 Jun 2021 16:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622677903; cv=none; d=google.com; s=arc-20160816; b=jkLKuayJ0oxBprbv58ZeoMGdsM+kWwEaU8NVct/JuuBhytodQiY87eg90Ud/qayPEk BJGYUkGHtHPrapj5YIA+nwgGvWeH/xumCLGWC+duSP7w+h4iUJjvLbb08C2sZW7o/Qqg 73NDD25ZMyE+It4H+Zvy9Z5O6KLwYisbNM8qj7Q7fw78uiM57J1sPnDORxKYDCB7mg+B gv8poMYLsNh0uMxo4I39qgPOico2eLoP+AMOPnnvY1SjjaTGwx63caTe/jUekv2UMaKI 3S0rGAvUVodxpAIQ0yEJj3Y6T+Ney1VjZjNgNkQ7MHkdIlGVV8gBLEwgUcKfEO2e51m/ Thhg== 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=s/eIrUrQdl2JatwFDZBVU2Su7wjREm/J1te+/OZSn3o=; b=HAFDNJNsVo4Jvlk48cqj2mwRmHdzQ4/8qEJeaJt9gx635+Nu7iyIgvXaq3ulP3QrM4 mH3A26FUMXS/5wugs9sNH0GKbuQMkPEbKUd3iE02ZqWHcTNYA7R9TQ62eQ0oXran8cBh wOoXCDVCB2YhdWJg7ISE5tQ8Vez7z6uwAzXwShT2RHF+LXhq5xWSAtNmG59cYAkZEFLz dW4aPXlFk8KPMopXFoQYBnFGyrnkBELltybIhFKm4RmEDK5pAQaMNJ8XvasFx7tVRmtq o8pk7SPo9TtMIJoHjuotGA9hnr8WmqOhlQkSh/QmbaO87EWsBAXKWfVUGBhPeAEO0L3j CwzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RWwqLESx; 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 l5si961643ejg.306.2021.06.02.16.51.17; Wed, 02 Jun 2021 16:51:43 -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=RWwqLESx; 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 S229625AbhFBXvQ (ORCPT + 99 others); Wed, 2 Jun 2021 19:51:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:51408 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbhFBXvQ (ORCPT ); Wed, 2 Jun 2021 19:51:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7DA9A613D8; Wed, 2 Jun 2021 23:49:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622677772; bh=03OVd6l7oQj7vrcl0Aa1QgC37aMuKF9JB7s8GqaXSLg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RWwqLESx/uN0TCUq74s7on3lrH3UFn2rv2kdcIzf1o5Jgnn7d8PgdrYIpePQLuTL6 UUBhYp6K0+WSWlYcoCOFDSWk03Zx3dl51cY7bEwFxqfwazFX0rP9sOORPXVWLBVuwb BdzV30lQzXtiCp3gCR6Ee/gAfzVSCX67IJz7EwgwNQeosZ/9kihFo1Ib1aunBzepRE 243u5/pct8DogyydXFMXgkhK+sa2xEfGCLgmiXkRn6qGbSEEOZYBQtNvYI1opQQ3ee gsOP+DpRKZlfHP9mawzwBEvOc4tRZ8nbZQCPcAbs0A9uK8VaNqUjbE3ESiu6ycIsW8 B1Lhbs6BOfARw== Date: Wed, 2 Jun 2021 16:49:31 -0700 From: Eric Biggers To: Daniel Rosenberg Cc: Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, Linux Kernel Mailing List , linux-fsdevel , 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 02, 2021 at 04:22:38PM -0700, Daniel Rosenberg wrote: > On Wed, Jun 2, 2021 at 12:54 PM Eric Biggers wrote: > > > > 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 > > Those are already within an #ifdef CONFIG_FS_ENCRYPTION, so it should > be covered already. Adding a comment to the #endif for CONFIG_FS_ENCRYPTION would make it easier to read: #endif /* CONFIG_FS_ENCRYPTION */ > Should I send a v2 set with the > > Fixes: 7ad08a58bf67 ("f2fs: Handle casefolding with Encryption") > Cc: stable@vger.kernel.org # v5.11+ > > appended? Yes, please add those tags. - Eric