Skip to contentSkip to conversation

writeback: Refine the show_inode_state() macro definition

PATCH Applied Julian Sun 3 participants 3 messages Aug 28, 2024 – Aug 29, 2024

Subsystems (3)
lore
Share & tools
lore

Julian Sun

author
#0 lore raw

PATCH v2 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 | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
include/trace/events/writeback.h +9 -1
index 54e353c9f919..a261e86e61fa 100644
@@ -20,7 +20,15 @@
 		{I_CLEAR,		"I_CLEAR"},		\
 		{I_SYNC,		"I_SYNC"},		\
 		{I_DIRTY_TIME,		"I_DIRTY_TIME"},	\
-		{I_REFERENCED,		"I_REFERENCED"}		\
+		{I_REFERENCED,		"I_REFERENCED"},	\
+		{I_LINKABLE,		"I_LINKABLE"},		\
+		{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"},	\
+		{I_LRU_ISOLATING,	"I_LRU_ISOLATING"}	\
 	)
 
 /* enums need to be exported to user space */
Signature · 1 line
2.39.2
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines · Julian Sun

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.

Looks good to me. Feel free to add:

Honza

Quoted 28 lines
---
 include/trace/events/writeback.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
include/trace/events/writeback.h +9 -1
index 54e353c9f919..a261e86e61fa 100644
@@ -20,7 +20,15 @@
 		{I_CLEAR,		"I_CLEAR"},		\
 		{I_SYNC,		"I_SYNC"},		\
 		{I_DIRTY_TIME,		"I_DIRTY_TIME"},	\
-		{I_REFERENCED,		"I_REFERENCED"}		\
+		{I_REFERENCED,		"I_REFERENCED"},	\
+		{I_LINKABLE,		"I_LINKABLE"},		\
+		{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"},	\
+		{I_LRU_ISOLATING,	"I_LRU_ISOLATING"}	\
 	)
 
 /* enums need to be exported to user space */
Signature · 1 line
2.39.2
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
maintainer Applied
#2 lore raw
In reply to Julian Sun
Quoted 5 lines · Julian Sun

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.

Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.misc

[1/1] writeback: Refine the show_inode_state() macro definition

      https://git.kernel.org/vfs/vfs/c/5b07b8fbb89a