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=-6.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no 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 3A023C2D0A8 for ; Mon, 28 Sep 2020 21:56:09 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9B43C2100A; Mon, 28 Sep 2020 21:56:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="l3rS6zcz"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="kuOQfm2n"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="PjVti+/d" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B43C2100A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1kN17w-0000TD-1T; Mon, 28 Sep 2020 21:56:08 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kN17v-0000T6-3i for linux-f2fs-devel@lists.sourceforge.net; Mon, 28 Sep 2020 21:56:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=WHy9XGvmL6Ex8Tuhvv8l+vI95iXoKv9w+/jIAAOb0pw=; b=l3rS6zcz6MLG165vkoGf4CQkI4 /BuoOZ848PlF6crTUhrTSTu5vghwA8S/FUU2PTu+FbUeez62k7a0O9158XXT25aFGVJsPnXPoXYs2 HhAso7bvwgrK/vUqw4PVpralfDADb1XTb5P4wXBmnc7XPRY2K9bRr+dAiHRXG5T9GXM4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=WHy9XGvmL6Ex8Tuhvv8l+vI95iXoKv9w+/jIAAOb0pw=; b=kuOQfm2n6BvK6jlgh/9zo0ne+C 1W0p17t+xrIRrKXbQmqc+fmoOzGaRbHrMLF67nvCdfXPPaJczt7/6xSELdwnqGJKwzRNKyhbgPNt0 JMZOcizCATb+m5iaEQy87GQxmKEdAJxJLXTYHkGm4v+iaj83ASZetPeqoAqFhSbkpyAQ=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1kN17t-009K5V-Bi for linux-f2fs-devel@lists.sourceforge.net; Mon, 28 Sep 2020 21:56:07 +0000 Received: from sol.localdomain (172-10-235-113.lightspeed.sntcca.sbcglobal.net [172.10.235.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C032B21D41; Mon, 28 Sep 2020 21:55:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601330159; bh=6z91mKn6qjuem7zZtYDzbCSm4BYLZg64yE8VCJOoMxw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PjVti+/d6/LARjkYevcmTfmDAbtEZwPm5zllEgC+l1/f3jnBjeRBhkbxdDhtbZwsD M9iaw83EBAmwBx920b7jFyftZLQ3qF9s2nENfvDC/lr595X7CjWN9fd3DBp92cO9Ru MgWunJMvRxRGUCBbbn7UNs1IaCDXfauboH8LY7co= Date: Mon, 28 Sep 2020 14:55:58 -0700 From: Eric Biggers To: linux-fscrypt@vger.kernel.org Message-ID: <20200928215558.GD1340@sol.localdomain> References: <20200924054721.187797-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200924054721.187797-1-ebiggers@kernel.org> X-Headers-End: 1kN17t-009K5V-Bi Subject: Re: [f2fs-dev] [PATCH] fscrypt: export fscrypt_d_revalidate() X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ceph-devel@vger.kernel.org, linux-ext4@vger.kernel.org, Jeff Layton , Daniel Rosenberg , linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On Wed, Sep 23, 2020 at 10:47:21PM -0700, Eric Biggers wrote: > From: Eric Biggers > > Dentries that represent no-key names must have a dentry_operations that > includes fscrypt_d_revalidate(). Currently, this is handled by > fscrypt_prepare_lookup() installing fscrypt_d_ops. > > However, ceph support for encryption > (https://lore.kernel.org/r/20200914191707.380444-1-jlayton@kernel.org) > can't use fscrypt_d_ops, since ceph already has its own > dentry_operations. > > Similarly, ext4 and f2fs support for directories that are both encrypted > and casefolded > (https://lore.kernel.org/r/20200923010151.69506-1-drosen@google.com) > can't use fscrypt_d_ops either, since casefolding requires some dentry > operations too. > > To satisfy both users, we need to move the responsibility of installing > the dentry_operations to filesystems. > > In preparation for this, export fscrypt_d_revalidate() and give it a > !CONFIG_FS_ENCRYPTION stub. > > Signed-off-by: Eric Biggers > --- > > Compared to the versions of this patch from Jeff and Daniel, I've > improved the commit message and added a !CONFIG_FS_ENCRYPTION stub, > which was missing. I'm planning to apply this for 5.10 in preparation > for both the ceph patchset and the encrypt+casefold patchset. > > > fs/crypto/fname.c | 3 ++- > include/linux/fscrypt.h | 7 +++++++ > 2 files changed, 9 insertions(+), 1 deletion(-) Applied to fscrypt.git#master for 5.10. - Eric _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel