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

NFSv4: Add a tracepoint for CB_LAYOUTRECALL

Only support for single file layoutrecall for now.

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

+3 -1
+2 -1
fs/nfs/callback_proc.c
··· 41 41 42 42 inode = nfs_delegation_find_inode(cps->clp, &args->fh); 43 43 if (inode == NULL) { 44 - trace_nfs4_cb_getattr(cps->clp, &args->fh, inode, 44 + trace_nfs4_cb_getattr(cps->clp, &args->fh, NULL, 45 45 -ntohl(res->status)); 46 46 goto out; 47 47 } ··· 198 198 spin_unlock(&ino->i_lock); 199 199 pnfs_free_lseg_list(&free_me_list); 200 200 pnfs_put_layout_hdr(lo); 201 + trace_nfs4_cb_layoutrecall_inode(clp, &args->cbl_fh, ino, -rv); 201 202 iput(ino); 202 203 out: 203 204 return rv;
+1
fs/nfs/nfs4trace.h
··· 941 941 ), \ 942 942 TP_ARGS(clp, fhandle, inode, error)) 943 943 DEFINE_NFS4_INODE_CALLBACK_EVENT(nfs4_cb_getattr); 944 + DEFINE_NFS4_INODE_CALLBACK_EVENT(nfs4_cb_layoutrecall_inode); 944 945 945 946 946 947 DECLARE_EVENT_CLASS(nfs4_idmap_event,