Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFSv4.1/pnfs: Add a tracepoint for return-on-close events

Allow tracing of return-on-close.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>

+2
+1
fs/nfs/nfs4trace.h
··· 1136 1136 1137 1137 DEFINE_NFS4_INODE_EVENT(nfs4_layoutcommit); 1138 1138 DEFINE_NFS4_INODE_EVENT(nfs4_layoutreturn); 1139 + DEFINE_NFS4_INODE_EVENT(nfs4_layoutreturn_on_close); 1139 1140 1140 1141 #endif /* CONFIG_NFS_V4_1 */ 1141 1142
+1
fs/nfs/pnfs.c
··· 1144 1144 if (pnfs_seqid_is_newer(barrier, lo->plh_barrier)) 1145 1145 lo->plh_barrier = barrier; 1146 1146 spin_unlock(&ino->i_lock); 1147 + trace_nfs4_layoutreturn_on_close(ino, 0); 1147 1148 } 1148 1149 1149 1150 void pnfs_roc_get_barrier(struct inode *ino, u32 *barrier)