Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 249b2eef authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: Add a tracepoint for CB_LAYOUTRECALL



Only support for single file layoutrecall for now.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 7cd14861
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ __be32 nfs4_callback_getattr(struct cb_getattrargs *args,

	inode = nfs_delegation_find_inode(cps->clp, &args->fh);
	if (inode == NULL) {
		trace_nfs4_cb_getattr(cps->clp, &args->fh, inode,
		trace_nfs4_cb_getattr(cps->clp, &args->fh, NULL,
				-ntohl(res->status));
		goto out;
	}
@@ -198,6 +198,7 @@ static u32 initiate_file_draining(struct nfs_client *clp,
	spin_unlock(&ino->i_lock);
	pnfs_free_lseg_list(&free_me_list);
	pnfs_put_layout_hdr(lo);
	trace_nfs4_cb_layoutrecall_inode(clp, &args->cbl_fh, ino, -rv);
	iput(ino);
out:
	return rv;
+1 −0
Original line number Diff line number Diff line
@@ -941,6 +941,7 @@ DECLARE_EVENT_CLASS(nfs4_inode_callback_event,
			), \
			TP_ARGS(clp, fhandle, inode, error))
DEFINE_NFS4_INODE_CALLBACK_EVENT(nfs4_cb_getattr);
DEFINE_NFS4_INODE_CALLBACK_EVENT(nfs4_cb_layoutrecall_inode);


DECLARE_EVENT_CLASS(nfs4_idmap_event,