diff options
| author | Jeff Layton <jlayton@kernel.org> | 2025-05-03 15:59:27 -0400 |
|---|---|---|
| committer | Chuck Lever <chuck.lever@oracle.com> | 2025-05-11 19:48:33 -0400 |
| commit | b52f2a79fb39eeb1f23d8932cf6692dadf6c9647 (patch) | |
| tree | 0b69f3d94114d3e6d604bc77db01c51a092d4258 /fs/nfsd/vfs.c | |
| parent | 51195263cdb8ba6aa4f3e6f6ee06a41f3717c87b (diff) | |
nfsd: add tracepoint to nfsd_rename
Observe the start of RENAME operations for all NFS versions.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/vfs.c')
| -rw-r--r-- | fs/nfsd/vfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 820290e5328f..41314b2a8199 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -1840,6 +1840,8 @@ nfsd_rename(struct svc_rqst *rqstp, struct svc_fh *ffhp, char *fname, int flen, int host_err; bool close_cached = false; + trace_nfsd_vfs_rename(rqstp, ffhp, tfhp, fname, flen, tname, tlen); + err = fh_verify(rqstp, ffhp, S_IFDIR, NFSD_MAY_REMOVE); if (err) goto out; |