All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@kernel.org>
To: Trond Myklebust <trond.myklebust@hammerspace.com>,
	Anna Schumaker <anna@kernel.org>
Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org,
	Jeff Layton <jlayton@kernel.org>
Subject: [PATCH 1/3] nfs: add new tracepoint at nfs4 revalidate entry point
Date: Fri, 03 Nov 2023 06:10:49 -0400	[thread overview]
Message-ID: <20231103-nfs-6-8-v1-1-a2aa9021dc1d@kernel.org> (raw)
In-Reply-To: <20231103-nfs-6-8-v1-0-a2aa9021dc1d@kernel.org>

Add a call to the v4 d_revalidate entrypoint, just like the v3 one.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
 fs/nfs/dir.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index e6a51fd94fea..ccb6f5d85a68 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -2194,6 +2194,8 @@ nfs4_do_lookup_revalidate(struct inode *dir, struct dentry *dentry,
 {
 	struct inode *inode;
 
+	trace_nfs_lookup_revalidate_enter(dir, dentry, flags);
+
 	if (!(flags & LOOKUP_OPEN) || (flags & LOOKUP_DIRECTORY))
 		goto full_reval;
 	if (d_mountpoint(dentry))

-- 
2.41.0


  reply	other threads:[~2023-11-03 10:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-03 10:10 [PATCH 0/3] nfs: clean up some tracepoints in the lookup / revalidate codepaths Jeff Layton
2023-11-03 10:10 ` Jeff Layton [this message]
2023-11-03 10:10 ` [PATCH 2/3] nfs: rename the nfs_async_rename_done tracepoint Jeff Layton
2023-11-03 10:10 ` [PATCH 3/3] nfs: print fileid in lookup tracepoints Jeff Layton
2023-11-03 14:18 ` [PATCH 0/3] nfs: clean up some tracepoints in the lookup / revalidate codepaths Chuck Lever III

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231103-nfs-6-8-v1-1-a2aa9021dc1d@kernel.org \
    --to=jlayton@kernel.org \
    --cc=anna@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@hammerspace.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.