aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfstrace.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2020-04-06 13:39:29 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2020-04-06 13:56:33 -0400
commit93ce4af774bc3d8a72ce2271d03241c96383629d (patch)
treeda860178b1a7f7104197f040e77c9d96efc403a1 /fs/nfs/nfstrace.h
parentSUNRPC: Don't start a timer on an already queued rpc task (diff)
downloadlinux-dev-93ce4af774bc3d8a72ce2271d03241c96383629d.tar.xz
linux-dev-93ce4af774bc3d8a72ce2271d03241c96383629d.zip
NFS: Clean up process of marking inode stale.
Instead of the various open coded calls to set the NFS_INO_STALE bit and call nfs_zap_caches(), consolidate them into a single function nfs_set_inode_stale(). Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/nfstrace.h')
-rw-r--r--fs/nfs/nfstrace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfstrace.h b/fs/nfs/nfstrace.h
index a9588d19a5ae..7e7a97ae21ed 100644
--- a/fs/nfs/nfstrace.h
+++ b/fs/nfs/nfstrace.h
@@ -181,6 +181,7 @@ DECLARE_EVENT_CLASS(nfs_inode_event_done,
int error \
), \
TP_ARGS(inode, error))
+DEFINE_NFS_INODE_EVENT(nfs_set_inode_stale);
DEFINE_NFS_INODE_EVENT(nfs_refresh_inode_enter);
DEFINE_NFS_INODE_EVENT_DONE(nfs_refresh_inode_exit);
DEFINE_NFS_INODE_EVENT(nfs_revalidate_inode_enter);