Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3881219pxb; Tue, 17 Nov 2020 06:06:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAsM5jpMHHYO7ekgZw+av1vtYlpx+S0Sx3qVVkakhJaH7X/AWLNxwIMRlkG8mZpQJVvsfJ X-Received: by 2002:aa7:d48d:: with SMTP id b13mr20400662edr.264.1605622017487; Tue, 17 Nov 2020 06:06:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605622017; cv=none; d=google.com; s=arc-20160816; b=pyFVBSa3iXaI8bcsFs6yGtoKhc5lGKIU507T6zQNB8weD1a903K0Y6w3sAh6Q7Pe59 pYi6h61X5wZMEEDkvS+N0Ay3jQVXSn8BNP41yiKBfREa7GpIozyJJyiU/cr0HNUdsfbB IMdN7Ph+8OoGDKbejm+CzsKr9vyGNaxddx+BhWB1AR7/VUuPvmgyR7o+b9qXWAymDYpU uwN4hIdY5lyxU7GeeAxmXlqg2mtoGssMWA+1G27ZGntqUJO5Hnly9hFZxBt+2qoaaMTe C9wuBr2G+9dNHIdcIv0Bjx6c7dM2NHVUjAzDm1Cq76ii2V1JXXdgxutwwnskzFVK8yQs Xq/A== 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; bh=LaPLV0ihMX5CikJIJIVgtyl/bpNK1fGKock4C6Enecg=; b=Cq3cBcw6A4DkByU8fMJr1y/xoGd4liXD/nQs1+idffZWykUREZxeaT1nyAIPOjoLgq iK2b6srbyK6yy7yiZvQrRUGfZqVIvK9cSY30OCUFJNHl/n+joLkyMYMOwCNmKjJxVsYj wzi3Uw59D7MIC7B9XyZyUSjhlkfKnxfrVLaxXsQ56KrqTKFB1gSvlYEGFgW7SD5uM+bw FuqJf9WD3cpwLkebEuIUN7FRiloPfAIo5D9lB0tf2wQA+j3PoQBZ24aUJ/fIQZvqLvST AHGZ7fa1Z5di1pOtvgmZvTY+N2/wCPxVhK8VlcTlQ7FdQ0d0HVq+gNkjTDO1JQUJzkFM dmlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i9si13323237eje.410.2020.11.17.06.06.23; Tue, 17 Nov 2020 06:06:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733027AbgKQOEE (ORCPT + 99 others); Tue, 17 Nov 2020 09:04:04 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:44510 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729073AbgKQOEE (ORCPT ); Tue, 17 Nov 2020 09:04:04 -0500 Received: from callcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 0AHE3QfP007454 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Nov 2020 09:03:26 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id 18F8E420107; Tue, 17 Nov 2020 09:03:26 -0500 (EST) Date: Tue, 17 Nov 2020 09:03:26 -0500 From: "Theodore Y. Ts'o" To: Daniel Rosenberg Cc: Jaegeuk Kim , Eric Biggers , Andreas Dilger , Chao Yu , Alexander Viro , Richard Weinberger , linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org, Gabriel Krisman Bertazi , kernel-team@android.com Subject: Re: [PATCH v2 2/3] fscrypt: Have filesystems handle their d_ops Message-ID: <20201117140326.GA445084@mit.edu> References: <20201117040315.28548-1-drosen@google.com> <20201117040315.28548-3-drosen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201117040315.28548-3-drosen@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Nov 17, 2020 at 04:03:14AM +0000, Daniel Rosenberg wrote: > This shifts the responsibility of setting up dentry operations from > fscrypt to the individual filesystems, allowing them to have their own > operations while still setting fscrypt's d_revalidate as appropriate. > > Most filesystems can just use generic_set_encrypted_ci_d_ops, unless > they have their own specific dentry operations as well. That operation > will set the minimal d_ops required under the circumstances. > > Since the fscrypt d_ops are set later on, we must set all d_ops there, > since we cannot adjust those later on. This should not result in any > change in behavior. > > Signed-off-by: Daniel Rosenberg Acked-by: Theodore Ts'o