Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1088240pxm; Wed, 23 Feb 2022 17:49:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6ubJXQ2vIT9V99h75bbSpGiMb4CXLwBSHs9Na7i5ZAFrTJ+l7xwkSxNFio4d5D9LwDg2y X-Received: by 2002:a17:902:eb8b:b0:14d:7f5b:94e2 with SMTP id q11-20020a170902eb8b00b0014d7f5b94e2mr587779plg.49.1645667381452; Wed, 23 Feb 2022 17:49:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645667381; cv=none; d=google.com; s=arc-20160816; b=TZMH0sahRjZBprVkdkqmg0OU/ydB/1gWH7CW9gYrr5gjClisHkxiORvHQg9NJ/5QQJ D5ndLXC8202xihoPBLSMGxq70LyKlWyW7ykk4GmpHYf//0ZA/t5l3y/atIxyRmLOqEq+ iICGbFtfHhhuwEbQ6TPJM838c9KuP3tD1uPklKF64ORa2MPkANhtvS6rlT6yDA/z1RKr T4vckf1pukWFLbZbLdkKavlerFVTnLDDl8XrFCrAKKqKxINv13x5srYrt2ohV0t53pTF 2Pho3MsE20hH2bD0hJ3eZKnnamZTHWPZGZpxLxAurtZCoGBynR6LKX42FgktwJRPRAao 6/QQ== 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:to:from :dkim-signature; bh=yeQWpqP4JKP09msHUsatdPGXJR6aqh5JdUwzWjld8og=; b=Oy4gxMbtS4mQ8ePC2KW+Zo66hM6qkdp8hgB6nPn3D6XtM6v0zQyDpCHvJpOBPD+7it J0UImq8kWJqJP3hf+7Vl26SbmPKW9eatkoIPnT9/rHZw4EFlzA73rvo4d2Vk4sTd2Kjs Frwdk/VAOqWHAtE0g5WirdCFdy9ZZQFVY/hznv42HaI/l1bpD/7BLAOwi2ZfMk4KGFkB K6KawsZzNuu8OVMGFcdFuEa/dWEMWhC0l3g1zKUCjFR7FThdowmft+ocTx8rMMBAVhJ3 zEzZp0Y167iAQWraIh2+Cby8DKwoUNMU9GLeUlHUHH0IbeblkGpVlSQ3mjSyPSJAT7J6 maGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qVaHEUUM; spf=softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f1si1483745plg.184.2022.02.23.17.49.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 17:49:41 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qVaHEUUM; spf=softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 423B82717A; Wed, 23 Feb 2022 17:21:55 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242468AbiBWVVM (ORCPT + 99 others); Wed, 23 Feb 2022 16:21:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242482AbiBWVUJ (ORCPT ); Wed, 23 Feb 2022 16:20:09 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 294D94ECC9 for ; Wed, 23 Feb 2022 13:19:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D831BB81CA4 for ; Wed, 23 Feb 2022 21:19:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83AB6C340E7 for ; Wed, 23 Feb 2022 21:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645651178; bh=i7/gOqtVIeKb2i7ihQdqIN8e18muCBZ89nPBFm9KjNc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qVaHEUUMaEGJKXLo2yIKVgPCHDiP0QKlKxcwAzelNuoE04G25lgrKqDl3/2Py0mIJ 2g4J486KzTUHj/FsFJttfAp9YHNp50JTv0y3v+pTRAGfiz8gcyJun08eBJR8qE8zc6 mj6+9nFlu8l77XDEFG6GwPtQh20tB3hTzzoeeQz2m3jNczkv3HYVTh2b+kfUtlQy0Y Y2M3BLbZhCY0OlpcKY86wD8kKkN8VLMCEwCT8yyMe87CKLRCd7SQAPEs9fPd+/nr5X 7pbACOphgAWVGbt3UMTcmKbDHEKYoluTmJVFLo7QFMR+Ym/umgSqMruGX2hhWyg+Qg 6s2VGf5Q2RwEg== From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Subject: [PATCH v7 17/21] NFS: Trace effects of readdirplus on the dcache Date: Wed, 23 Feb 2022 16:13:01 -0500 Message-Id: <20220223211305.296816-18-trondmy@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220223211305.296816-17-trondmy@kernel.org> References: <20220223211305.296816-1-trondmy@kernel.org> <20220223211305.296816-2-trondmy@kernel.org> <20220223211305.296816-3-trondmy@kernel.org> <20220223211305.296816-4-trondmy@kernel.org> <20220223211305.296816-5-trondmy@kernel.org> <20220223211305.296816-6-trondmy@kernel.org> <20220223211305.296816-7-trondmy@kernel.org> <20220223211305.296816-8-trondmy@kernel.org> <20220223211305.296816-9-trondmy@kernel.org> <20220223211305.296816-10-trondmy@kernel.org> <20220223211305.296816-11-trondmy@kernel.org> <20220223211305.296816-12-trondmy@kernel.org> <20220223211305.296816-13-trondmy@kernel.org> <20220223211305.296816-14-trondmy@kernel.org> <20220223211305.296816-15-trondmy@kernel.org> <20220223211305.296816-16-trondmy@kernel.org> <20220223211305.296816-17-trondmy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-nfs@vger.kernel.org From: Trond Myklebust Trace the effects of readdirplus on attribute and dentry revalidation. Signed-off-by: Trond Myklebust --- fs/nfs/dir.c | 5 +++++ fs/nfs/nfstrace.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 41e2d02d8611..95b18d1ad0cf 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -742,8 +742,12 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry, status = nfs_refresh_inode(d_inode(dentry), entry->fattr); if (!status) nfs_setsecurity(d_inode(dentry), entry->fattr); + trace_nfs_readdir_lookup_revalidate(d_inode(parent), + dentry, 0, status); goto out; } else { + trace_nfs_readdir_lookup_revalidate_failed( + d_inode(parent), dentry, 0); d_invalidate(dentry); dput(dentry); dentry = NULL; @@ -765,6 +769,7 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry, dentry = alias; } nfs_set_verifier(dentry, dir_verifier); + trace_nfs_readdir_lookup(d_inode(parent), dentry, 0); out: dput(dentry); } diff --git a/fs/nfs/nfstrace.h b/fs/nfs/nfstrace.h index c2d0543ecb2d..7c1102b991d0 100644 --- a/fs/nfs/nfstrace.h +++ b/fs/nfs/nfstrace.h @@ -432,6 +432,9 @@ DEFINE_NFS_LOOKUP_EVENT(nfs_lookup_enter); DEFINE_NFS_LOOKUP_EVENT_DONE(nfs_lookup_exit); DEFINE_NFS_LOOKUP_EVENT(nfs_lookup_revalidate_enter); DEFINE_NFS_LOOKUP_EVENT_DONE(nfs_lookup_revalidate_exit); +DEFINE_NFS_LOOKUP_EVENT(nfs_readdir_lookup); +DEFINE_NFS_LOOKUP_EVENT(nfs_readdir_lookup_revalidate_failed); +DEFINE_NFS_LOOKUP_EVENT_DONE(nfs_readdir_lookup_revalidate); TRACE_EVENT(nfs_atomic_open_enter, TP_PROTO( -- 2.35.1