Currently, the show_inode_state() macro only prints
part of the state of inode->i_state. Let’s improve it
to display more of its state.

Signed-off-by: Julian Sun <[email protected]>
---
 include/trace/events/writeback.h | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h
index 54e353c9f919..f3e0edc1a311 100644
--- a/include/trace/events/writeback.h
+++ b/include/trace/events/writeback.h
@@ -20,7 +20,16 @@
                {I_CLEAR,               "I_CLEAR"},             \
                {I_SYNC,                "I_SYNC"},              \
                {I_DIRTY_TIME,          "I_DIRTY_TIME"},        \
-               {I_REFERENCED,          "I_REFERENCED"}         \
+               {I_REFERENCED,          "I_REFERENCED"},        \
+               {I_DIO_WAKEUP,  "I_DIO_WAKEUP"},        \
+               {I_LINKABLE,    "I_LINKABLE"},  \
+               {I_DIRTY_TIME,  "I_DIRTY_TIME"},        \
+               {I_WB_SWITCH,   "I_WB_SWITCH"}, \
+               {I_OVL_INUSE,   "I_OVL_INUSE"}, \
+               {I_CREATING,    "I_CREATING"},  \
+               {I_DONTCACHE,   "I_DONTCACHE"}, \
+               {I_SYNC_QUEUED, "I_SYNC_QUEUED"},       \
+               {I_PINNING_NETFS_WB, "I_PINNING_NETFS_WB"} \
        )
 
 /* enums need to be exported to user space */
-- 
2.39.2


Reply via email to