History

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.

Trond Myklebust committed 8 years ago

Commit 2edaead1 parent d03360a1 file · +1 −1Browse files

Unified · Split

fs/nfs/nfs4trace.h+1−1
@@ -1137,7 +1137,7 @@ DECLARE_EVENT_CLASS(nfs4_inode_callback_event, · 1136 unmodified lines
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 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t