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

Configure Feed

Select the types of activity you want to include in your feed.

NFSv4: Allow tracing of NFSv4 fsync calls

I appear to have missed this when adding the ftrace probes.

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

+8
+5
fs/nfs/nfs4file.c
··· 10 10 #include "fscache.h" 11 11 #include "pnfs.h" 12 12 13 + #include "nfstrace.h" 14 + 13 15 #ifdef CONFIG_NFS_V4_2 14 16 #include "nfs42.h" 15 17 #endif ··· 102 100 int ret; 103 101 struct inode *inode = file_inode(file); 104 102 103 + trace_nfs_fsync_enter(inode); 104 + 105 105 do { 106 106 ret = filemap_write_and_wait_range(inode->i_mapping, start, end); 107 107 if (ret != 0) ··· 122 118 end = LLONG_MAX; 123 119 } while (ret == -EAGAIN); 124 120 121 + trace_nfs_fsync_exit(inode, ret); 125 122 return ret; 126 123 } 127 124
+3
fs/nfs/nfstrace.c
··· 7 7 8 8 #define CREATE_TRACE_POINTS 9 9 #include "nfstrace.h" 10 + 11 + EXPORT_TRACEPOINT_SYMBOL_GPL(nfs_fsync_enter); 12 + EXPORT_TRACEPOINT_SYMBOL_GPL(nfs_fsync_exit);