Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp958600pxj; Wed, 2 Jun 2021 16:24:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYLtoADSdntiyYzydAo7/g+QSbySdy40Fek2qBtQfSkza0HGn4ouldY7j4MiVvoSh9vhEf X-Received: by 2002:a17:907:693:: with SMTP id wn19mr2042289ejb.74.1622676248866; Wed, 02 Jun 2021 16:24:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622676248; cv=none; d=google.com; s=arc-20160816; b=bu1pB8pGs8AY6SBLNeSvrpcM72R4HCJ7DqdldlRFE/cJgloP2sXIlSqNvOghaouPqT ISjHupJyg9rF/fmTImXKzAeqCeouR/Wkk7+v6N9/iNVzS/0l2gzutCDV1YAu/qZpQdkc VkRnVI4GA2EbrCrbbvJLTwmVgd2i5nwMBDidH3W2ydqzAL9rauFq72DoMW8PJI73XaI5 OxJJdxVSUjye+uE9vFmFbHdBpNExRPDlGn5gIPhr+RJzavglSUv+xpXRfwpk1tXkXH0m HMKxE1RJC1mZJkQ2ZXhoVq9w0ygXdUeYAGaW193jvrRdmL4oYdH78NFf6mv45HOs6XLG h5zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NWXfOWB2ZcUoziLC2rsM6+AWebQeH0STAUDFqx6ZI84=; b=fJMyeY+LgLYmULji/cRW0uSJtsy+1EQzBIKdXIy6O4VdPl2Nnw6GlP0g9hE2GfWiG8 9NUmVaCeUzXHQXaS3P+6Q+I332GcRy7DZ00E5EHcSjeg7erRaVTZJsX9DqFhMWLq8t9j Eg+62NpHTYKX+8wTyQceNAjpj/lhcDdsZJvqrdu3YOC3kUzhPbN29Fl8ROKeYVbE1SJT X6EXU9/f6Oo7U5JiVR7o/JxJC7OigQav9u8h3fUljvsiet1mulfJszgRbfWhPfSkkrOa DaNVYXiTNOrSHfYFW6jNLfx0+TpA2n7EXKXOgTL8G45TwL/YupKl9mS/ZtRaDtsJFW8G LwkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qgSswxig; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr14si765841ejc.744.2021.06.02.16.23.45; Wed, 02 Jun 2021 16:24:08 -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=@google.com header.s=20161025 header.b=qgSswxig; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbhFBXYe (ORCPT + 99 others); Wed, 2 Jun 2021 19:24:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbhFBXYe (ORCPT ); Wed, 2 Jun 2021 19:24:34 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94346C06174A for ; Wed, 2 Jun 2021 16:22:50 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id v27-20020a056830091bb02903cd67d40070so952128ott.1 for ; Wed, 02 Jun 2021 16:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NWXfOWB2ZcUoziLC2rsM6+AWebQeH0STAUDFqx6ZI84=; b=qgSswxigcNOrr2ZMNR8Uj2NB8i7JEi7f/0mfyEP0UOlTnuEMuu1/d+SWh8AD0DeMNf LiU69e1Sl+HGQw8xd17EXIkXIG7dfZpwgtALqnrZtvHJwNL0O1wyGr3n9VMYKIGuFrlM +nP6B4MWh/aAnXi4vY5APg1X/MMJ4KA8gAOu1awWf+mcxoW5BgYQ5IYXv56gZMbPoy8w tHd1WxutfII6lbPvMkF+f6/JR2mwNJ9CSVyPAdS89UaPT3+r4yyp0/jXFNlQUldtZ31J eaMhfNCsV1mydY4WRWuSgM1w4OIdyVzy1t7tUf9Z2Tv+TJCXUYKuO1dsIcVfUPfxQUHE 1jSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NWXfOWB2ZcUoziLC2rsM6+AWebQeH0STAUDFqx6ZI84=; b=hpNkyH2I6xVjwzT7YkwFjRkQvInZ7CCfRpwVz+lBPnb4EXPsB8M9HKvFrnaVL6KINl ETu0wOGmq8j7EcxN+lHOgbRyRLN6APMErzOY2PBKTYIBKTcfwkpqieG+FFiwqBojaLhQ s8AQ8TzraohNfZZspp3oo2AEH2yWRyuH6K5ub+1JfH3sTGsWTDgdl/5lfW+gVHyo0DJc MiRAzpf+aO22iLhwHiIXaq/cDMjcegkPV/DL3WyC9lyX1H2kjoQLNcBAFrXOWRXIo8yN W/tlyHZ+5cr3oWwLjXLz0QQE6Kzd9n3k+LtHafWcsksyMkhGl/tQwx9RuunYiREfTJKu yChQ== X-Gm-Message-State: AOAM5328j9WONywcsVr4ZQZm0OxyJ9qfYAVAqyOrRgw1PRah+NQQcdxa jRyX+ICXgWgxv//tj+850fyVogEc5Wz8IVUSU6dBDQ== X-Received: by 2002:a9d:5e8c:: with SMTP id f12mr27745872otl.18.1622676169637; Wed, 02 Jun 2021 16:22:49 -0700 (PDT) MIME-Version: 1.0 References: <20210602041539.123097-1-drosen@google.com> <20210602041539.123097-3-drosen@google.com> In-Reply-To: From: Daniel Rosenberg Date: Wed, 2 Jun 2021 16:22:38 -0700 Message-ID: Subject: Re: [PATCH 2/2] f2fs: Advertise encrypted casefolding in sysfs To: Eric Biggers Cc: Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, Linux Kernel Mailing List , linux-fsdevel , Gabriel Krisman Bertazi , kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Should I send a v2 set with the Fixes: 7ad08a58bf67 ("f2fs: Handle casefolding with Encryption") Cc: stable@vger.kernel.org # v5.11+ appended? -Daniel