Skip to contentSkip to conversation

writeback: Refine the show_inode_state() macro definition

PATCH In review Julian Sun 1 participant 2 messages Aug 20, 2024

Subsystems (3)
lore
Share & tools
lore

Julian Sun

author
#0 lore raw

PATCH 1/1 writeback: Refine the show_inode_state() macro definition

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.

---
 include/trace/events/writeback.h | 9 +++++++++
 1 file changed, 9 insertions(+)
include/trace/events/writeback.h +9 -0
index 54e353c9f919..a2c2bb1cddd7 100644
@@ -21,6 +21,15 @@
 		{I_SYNC,		"I_SYNC"},		\
 		{I_DIRTY_TIME,		"I_DIRTY_TIME"},	\
 		{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 */
Signature · 1 line
2.39.2
author
#1 lore raw

Apologies, this patch was sent by mistake. Please refer to the latest patch

Quoted 33 lines · Julian Sun <[email protected]> 于2024年8月20日周二 17:49写道:

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.

---
 include/trace/events/writeback.h | 9 +++++++++
 1 file changed, 9 insertions(+)
include/trace/events/writeback.h +9 -1
index 54e353c9f919..a2c2bb1cddd7 100644
@@ -21,6 +21,15 @@
                {I_SYNC,                "I_SYNC"},              \
                {I_DIRTY_TIME,          "I_DIRTY_TIME"},        \
                {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

Signature · 1 line
Julian Sun <[email protected]>