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=-9.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 7505BC3F2D6 for ; Sat, 7 Mar 2020 02:36:56 +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 4B3D6206E6 for ; Sat, 7 Mar 2020 02:36:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.sourceforge.net header.i=@lists.sourceforge.net header.b="Cz2EqexT"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="K8ypa78j"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="RqXroKeP"; dkim=neutral (0-bit key) header.d=google.com header.i=@google.com header.b="ZUjBrxbf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4B3D6206E6 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=lists.sourceforge.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:To:References:Mime-Version:Message-Id: In-Reply-To:Date:Sender:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=e6ryPqr1M2HJJR2TZE5BiI6qt6PCJ1WBO1S1dt4XC0o=; b=Cz2EqexTopW/jEVN9JIapGORc 6msJa+K7cAmq0hB3B2dGOaYGoVR7Ct59FpGfDdROZE4TRYn+fru2zmi1MktnwZfjT9rWJjeUc/ipz dGopRYM7CXrnMoLEjVZ71nctcGnWQuPKi0olivwEj3pEPF7O3ebZQ0d7I37zitAeEcT8k=; Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jAPKh-0005Yo-UF; Sat, 07 Mar 2020 02:36:55 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from <3vQhjXgYKAFQzDAE092AA270.yA8@flex--drosen.bounces.google.com>) id 1jAPKe-0005YM-OO for linux-f2fs-devel@lists.sourceforge.net; Sat, 07 Mar 2020 02:36:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:Cc:To:From:Subject:References: Mime-Version:Message-Id:In-Reply-To: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=voLmfNHCEAsUj1t7nCxgSA9Y75G0q2ard7Ul69iPgyE=; b=K8ypa78j8ime0Z1MXjMVhmE4J XkcHQxONlKjqbDrHRC1crseQixN3UsrI2qs61vIGBFmEVPRp4Lxp1vNI4BTmNgT6J2dTte6vhngIB z1SyKVWP3FIdlSoIUxYnKT91mNl7ZsKgWFNvAUnG7ntJlju3q1Kn+Lb1pvlo0zH0Z8RPA=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:Cc:To:From:Subject:References:Mime-Version:Message-Id: In-Reply-To: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=voLmfNHCEAsUj1t7nCxgSA9Y75G0q2ard7Ul69iPgyE=; b=RqXroKePcxoWKo/UlhB15RUliW uqk58kJLikB1c9Q1hRBvouB46Zi4jnhQCOluf9SplgyjYO/i5K1ZP1wqGUQRDI4BYCigPEkrEto/Z PSMv2stLfECRjbRHHr1sXIMe8szIVq2EL5qV9sBjq6ydeMF9jJNyXj3PctGeE6sjzKEU=; Received: from mail-pl1-f202.google.com ([209.85.214.202]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1jAPKd-000uCg-Ik for linux-f2fs-devel@lists.sourceforge.net; Sat, 07 Mar 2020 02:36:52 +0000 Received: by mail-pl1-f202.google.com with SMTP id s13so2506333plr.21 for ; Fri, 06 Mar 2020 18:36:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=voLmfNHCEAsUj1t7nCxgSA9Y75G0q2ard7Ul69iPgyE=; b=ZUjBrxbfMPRhNcKXsujkMfTBsDi7260b6iA1v68ODA6TQ/zTU2NXDbEy5j2fpf2qKL fzlr30xIQkO7sFofoDb4XryOVTaSKoEdS2CTxOm3HC7bUwueB8pBc4P/aR24dCLInM3k ZX7c0iRim3aAYDsNxcgnSOr1U6vatlMLFlDh3gx6/nF0X6rj90nSenuRGG+m78B3jf9R Ep8sLbldqAxEvV+N4ZYRfRSQujF9+jWkPkc7EQDvmfuQkRlRwrTNAz3C5qMhYbCl9M4F vl8/SXOqD08TjRAub9L/5GhPse1lBiv4AzzaibZkva36DNVabBsTXOvtaYmQz8ehjIDv /bTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=voLmfNHCEAsUj1t7nCxgSA9Y75G0q2ard7Ul69iPgyE=; b=XqKxb+GEXiLau/umwkEoQh447oUSHqYnyDwYZD+V3b+/0JHyVKiU4ofB03r8z1SvzB JQ4XTKKao1h8UkZ60yj4ESY0VBHrEcsVt5edLmfdpAY4jk5OzWfGynymzFEC9/HyRxDV bMiqKlgc47IZWYsdZRev+qtI0z+vYK3U5zOIhT95Ug/NOQrKugdlgTOXVsgKI41+Vg5r LWHR8b8CZrvHg6cPx3v0mUlh+FByem6R2aI/0VuEMAHD91KSNwpjnUM+bSInvwU0aRvA +E8drJf55xVHFfa9cLUFVAZ3J1RXQ6nUIBV+S9TN6+dYCWebY4dGAqGuQwVy2FI1opvn L/0g== X-Gm-Message-State: ANhLgQ1ORsi2vp4rkNOLfel3nECYQNsGoSd5cjyexcWrFWGd6MIhPUfA 5EEqBO1i7UybPUOEb9Nk+XEg68bSrpo= X-Google-Smtp-Source: ADFU+vuqkVmleIVLhKPiL1OxVdIlhECjzIJTvPSZbDI75NgCC2aoisXFaecuThUwcuon+CY2/vgKdX0I5lQ= X-Received: by 2002:a17:90a:37d0:: with SMTP id v74mr6656285pjb.0.1583548605689; Fri, 06 Mar 2020 18:36:45 -0800 (PST) Date: Fri, 6 Mar 2020 18:36:08 -0800 In-Reply-To: <20200307023611.204708-1-drosen@google.com> Message-Id: <20200307023611.204708-6-drosen@google.com> Mime-Version: 1.0 References: <20200307023611.204708-1-drosen@google.com> X-Mailer: git-send-email 2.25.1.481.gfbce0eb801-goog To: "Theodore Ts'o" , linux-ext4@vger.kernel.org, Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, Eric Biggers , linux-fscrypt@vger.kernel.org, Alexander Viro , Richard Weinberger X-Headers-End: 1jAPKd-000uCg-Ik Subject: [f2fs-dev] [PATCH v8 5/8] 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: , From: Daniel Rosenberg via Linux-f2fs-devel Reply-To: Daniel Rosenberg Cc: Daniel Rosenberg , linux-doc@vger.kernel.org, kernel-team@android.com, Jonathan Corbet , linux-kernel@vger.kernel.org, Andreas Dilger , linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org, Gabriel Krisman Bertazi Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net This is in preparation for shifting the responsibility of setting the dentry_operations to the filesystem, allowing it to maintain its own operations. Signed-off-by: Daniel Rosenberg --- fs/crypto/fname.c | 3 ++- include/linux/fscrypt.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/crypto/fname.c b/fs/crypto/fname.c index 4c212442a8f7f..73adbbb9d78c7 100644 --- a/fs/crypto/fname.c +++ b/fs/crypto/fname.c @@ -543,7 +543,7 @@ EXPORT_SYMBOL_GPL(fscrypt_fname_siphash); * Validate dentries in encrypted directories to make sure we aren't potentially * caching stale dentries after a key has been added. */ -static int fscrypt_d_revalidate(struct dentry *dentry, unsigned int flags) +int fscrypt_d_revalidate(struct dentry *dentry, unsigned int flags) { struct dentry *dir; int err; @@ -586,3 +586,4 @@ static int fscrypt_d_revalidate(struct dentry *dentry, unsigned int flags) const struct dentry_operations fscrypt_d_ops = { .d_revalidate = fscrypt_d_revalidate, }; +EXPORT_SYMBOL(fscrypt_d_revalidate); diff --git a/include/linux/fscrypt.h b/include/linux/fscrypt.h index 556f4adf5dc58..b199b6e976ce3 100644 --- a/include/linux/fscrypt.h +++ b/include/linux/fscrypt.h @@ -176,6 +176,7 @@ extern bool fscrypt_match_name(const struct fscrypt_name *fname, const u8 *de_name, u32 de_name_len); extern u64 fscrypt_fname_siphash(const struct inode *dir, const struct qstr *name); +extern int fscrypt_d_revalidate(struct dentry *dentry, unsigned int flags); /* bio.c */ extern void fscrypt_decrypt_bio(struct bio *); -- 2.25.1.481.gfbce0eb801-goog _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel