Skip to content

Commit 2edaead

Browse files
trondmyamschuma-ntap
authored andcommitted
NFSv4: Fix a tracepoint Oops in initiate_file_draining()
Now that the value of 'ino' can be NULL or an ERR_PTR(), we need to change the test in the tracepoint. Fixes: ce5624f ("NFSv4: Return NFS4ERR_DELAY when a layout fails...") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Cc: stable@vger.kernel.org # v4.17+ Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
1 parent d03360a commit 2edaead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/nfs4trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ DECLARE_EVENT_CLASS(nfs4_inode_callback_event,
11371137
TP_fast_assign(
11381138
__entry->error = error;
11391139
__entry->fhandle = nfs_fhandle_hash(fhandle);
1140-
if (inode != NULL) {
1140+
if (!IS_ERR_OR_NULL(inode)) {
11411141
__entry->fileid = NFS_FILEID(inode);
11421142
__entry->dev = inode->i_sb->s_dev;
11431143
} else {

0 commit comments

Comments
 (0)