forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
kernel/include/trace/events/writeback.h
....@@ -67,7 +67,7 @@
6767 strscpy_pad(__entry->name,
6868 bdi_dev_name(mapping ? inode_to_bdi(mapping->host) :
6969 NULL), 32);
70
- __entry->ino = mapping ? mapping->host->i_ino : 0;
70
+ __entry->ino = (mapping && mapping->host) ? mapping->host->i_ino : 0;
7171 __entry->index = page->index;
7272 ),
7373