Skip to content

Commit 493e83a

Browse files
Eric Whitneytytso
authored andcommitted
ext4: translate a few more map flags to strings in tracepoints
As new ext4_map_blocks() flags have been added, not all have gotten flag bit to string translations to make tracepoint output more readable. Fix that, and go one step further by adding a translation for the EXT4_EX_NOCACHE flag as well. The EXT4_EX_FORCE_CACHE flag can never be set in a tracepoint in the current code, so there's no need to bother with a translation for it right now. Signed-off-by: Eric Whitney <enwlinux@gmail.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20200415203140.30349-3-enwlinux@gmail.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 9e52484 commit 493e83a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎include/trace/events/ext4.h‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ struct partial_cluster;
4545
{ EXT4_GET_BLOCKS_CONVERT, "CONVERT" }, \
4646
{ EXT4_GET_BLOCKS_METADATA_NOFAIL, "METADATA_NOFAIL" }, \
4747
{ EXT4_GET_BLOCKS_NO_NORMALIZE, "NO_NORMALIZE" }, \
48-
{ EXT4_GET_BLOCKS_ZERO, "ZERO" })
48+
{ EXT4_GET_BLOCKS_CONVERT_UNWRITTEN, "CONVERT_UNWRITTEN" }, \
49+
{ EXT4_GET_BLOCKS_ZERO, "ZERO" }, \
50+
{ EXT4_GET_BLOCKS_IO_SUBMIT, "IO_SUBMIT" }, \
51+
{ EXT4_EX_NOCACHE, "EX_NOCACHE" })
4952

5053
/*
5154
* __print_flags() requires that all enum values be wrapped in the

0 commit comments

Comments
 (0)