Now that the value of 'ino' can be NULL or an ERR_PTR(), we need to change the test in the tracepoint.
Unified · Split
| @@ -1137,7 +1137,7 @@ DECLARE_EVENT_CLASS(nfs4_inode_callback_event, · 1136 unmodified lines | |||
| 1137 | TP_fast_assign( | 1137 | TP_fast_assign( |
| 1138 | __entry->error = error; | 1138 | __entry->error = error; |
| 1139 | __entry->fhandle = nfs_fhandle_hash(fhandle); | 1139 | __entry->fhandle = nfs_fhandle_hash(fhandle); |
| 1140 | if (inode != NULL) { | 1140 | if (!IS_ERR_OR_NULL(inode)) { |
| 1141 | __entry->fileid = NFS_FILEID(inode); | 1141 | __entry->fileid = NFS_FILEID(inode); |
| 1142 | __entry->dev = inode->i_sb->s_dev; | 1142 | __entry->dev = inode->i_sb->s_dev; |
| 1143 | } else { | 1143 | } else { |