Skip to content

Commit 2a534a7

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 0af4c8b commit 2a534a7

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
@@ -1194,7 +1194,7 @@ DECLARE_EVENT_CLASS(nfs4_inode_stateid_callback_event,
11941194
TP_fast_assign(
11951195
__entry->error = error;
11961196
__entry->fhandle = nfs_fhandle_hash(fhandle);
1197-
if (inode != NULL) {
1197+
if (!IS_ERR_OR_NULL(inode)) {
11981198
__entry->fileid = NFS_FILEID(inode);
11991199
__entry->dev = inode->i_sb->s_dev;
12001200
} else {

0 commit comments

Comments
 (0)