Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1324140rdg; Fri, 11 Aug 2023 18:47:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFt+/Whrm42Z3kY+qBHepZOzvdUttzs/Je3TvO7LgoYzFlO/SoTNw7mHYImxXztFoyXUp0a X-Received: by 2002:a17:907:2715:b0:994:569b:61b8 with SMTP id w21-20020a170907271500b00994569b61b8mr2715521ejk.58.1691804832404; Fri, 11 Aug 2023 18:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691804832; cv=none; d=google.com; s=arc-20160816; b=t3xTl5f60w2HUEhBb1gzZJ27MAxJ1YSqKvo7OA2VVVFqUGdN+W3DTCI6Lxbj4EKClu n4CYzu3qtFlAwQUGrHuvDu3YIo1yCyrgzlR6xiIeLGqEnZITWh/wSpfY3kWj8vPtynjA hCz5k2+5OP3P7Z3wTHn74zyv5cMSAhPrgrQe1xJ29k7kCSpwRqjg+X3bWzcjDlIiF/IR ViFFAceHtKTRGfAGrcU0M1jcpptX8aVE6itw+Nm7dmo25DVGO2E4RngD4QefaGneEcZ0 +Xf9icM6R6VRqvRbxxC2pU12tBeaGdhRp8FcqHrbksEyOWr329o5J3rQ0jGwvpFAp8L0 wdag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=ZLSJltA607r7xtpPPkkvUfJUZbMcdXItzz2TC+sxABk=; fh=IF+PGZ0pTaaaFXokbro3UIEKyVnnt0oQhh6MXdpFlKw=; b=icertqUA38Ve9elP2nIYZAF1fyBOFT/cZsLPNbeI/PIbkN1n4yMMX0zO8ZVJPIByr8 oIkOtBNNVq/gPEvY8m4TQlAzTLTnV7pfBNsSzGO3jhO0chnCFTZhLr2FSdVcqdmAEnqx YAomxX6o/4WK0DbLFk0cpO0X/m2kfAxqBIMWjyIIPK1Ra2Fp2mocHFUHD4ZQ78wbrvep lP/IHeHyKkXSmBRBuErod/IZFcrSe3WGC46weuHX62kooE+fs8E6+O6DTwHpyIAWbbWQ 761fhDjZzC2dvZUxf2R193vT5ksb0wXU9GsrIzJFiCSB92D30sApHMT00EpES9QIiREm TX8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=SQTOGHNV; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qx25-20020a170906fcd900b009769ff4d234si4672815ejb.58.2023.08.11.18.46.43; Fri, 11 Aug 2023 18:47:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=SQTOGHNV; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237182AbjHLAmC (ORCPT + 99 others); Fri, 11 Aug 2023 20:42:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237156AbjHLAmA (ORCPT ); Fri, 11 Aug 2023 20:42:00 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D246A6; Fri, 11 Aug 2023 17:42:00 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id EEB07218E6; Sat, 12 Aug 2023 00:41:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1691800918; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZLSJltA607r7xtpPPkkvUfJUZbMcdXItzz2TC+sxABk=; b=SQTOGHNV2KiavvzoucAG5T8Vw5AFv5EqUIT7kv7/ngcaAqlx47a8XJNITsEjC5YDJ/KbXw wenk5fzYjOmUCtWwimhSa3Zgkhx2H3QRzrEmmVANv2AGmz9VV+eBxyTDPMjATet6RyV6dq 9aRrHOSeHurjemQaGcy+dOVl5DFOeMk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1691800918; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZLSJltA607r7xtpPPkkvUfJUZbMcdXItzz2TC+sxABk=; b=t+aMxO4dfWreIRpbqekuGL5xR6qXonpBXp/46PoO9x4xKG7WBEvCyDBYbyG/pPKaw67Waj 7a6q0bcfAfohLZCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BA1F713592; Sat, 12 Aug 2023 00:41:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id nwbYJ1bV1mQREAAAMHmgww (envelope-from ); Sat, 12 Aug 2023 00:41:58 +0000 From: Gabriel Krisman Bertazi To: viro@zeniv.linux.org.uk, brauner@kernel.org, tytso@mit.edu, ebiggers@kernel.org, jaegeuk@kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Gabriel Krisman Bertazi Subject: [PATCH v5 03/10] 9p: Split ->weak_revalidate from ->revalidate Date: Fri, 11 Aug 2023 20:41:39 -0400 Message-ID: <20230812004146.30980-4-krisman@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230812004146.30980-1-krisman@suse.de> References: <20230812004146.30980-1-krisman@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org In preparation to change the signature of dentry_ops->revalidate, avoid reusing the handler directly for d_weak_revalidate in 9p. Signed-off-by: Gabriel Krisman Bertazi --- fs/9p/vfs_dentry.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fs/9p/vfs_dentry.c b/fs/9p/vfs_dentry.c index f16f73581634..0c6fa1f53530 100644 --- a/fs/9p/vfs_dentry.c +++ b/fs/9p/vfs_dentry.c @@ -94,9 +94,15 @@ static int v9fs_lookup_revalidate(struct dentry *dentry, unsigned int flags) return 1; } +static int v9fs_lookup_weak_revalidate(struct dentry *dentry, + unsigned int flags) +{ + return v9fs_lookup_revalidate(dentry, flags); +} + const struct dentry_operations v9fs_cached_dentry_operations = { .d_revalidate = v9fs_lookup_revalidate, - .d_weak_revalidate = v9fs_lookup_revalidate, + .d_weak_revalidate = v9fs_lookup_weak_revalidate, .d_delete = v9fs_cached_dentry_delete, .d_release = v9fs_dentry_release, }; -- 2.41.0