Skip to content

Commit 0ce3537

Browse files
ChaitanayaKulkarniaxboe
authored andcommitted
f2fs: use block layer helper for show_bio_op macro
Adjust the f2fs tracing code to use newly introduced block layer function blk_op_str() which converts the REQ_OP_XXX into the string XXX. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent b0e5168 commit 0ce3537

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

‎include/trace/events/f2fs.h‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,7 @@ TRACE_DEFINE_ENUM(CP_TRIMMED);
7676
#define show_bio_type(op,op_flags) show_bio_op(op), \
7777
show_bio_op_flags(op_flags)
7878

79-
#define show_bio_op(op) \
80-
__print_symbolic(op, \
81-
{ REQ_OP_READ, "READ" }, \
82-
{ REQ_OP_WRITE, "WRITE" }, \
83-
{ REQ_OP_FLUSH, "FLUSH" }, \
84-
{ REQ_OP_DISCARD, "DISCARD" }, \
85-
{ REQ_OP_SECURE_ERASE, "SECURE_ERASE" }, \
86-
{ REQ_OP_ZONE_RESET, "ZONE_RESET" }, \
87-
{ REQ_OP_WRITE_SAME, "WRITE_SAME" }, \
88-
{ REQ_OP_WRITE_ZEROES, "WRITE_ZEROES" })
79+
#define show_bio_op(op) blk_op_str(op)
8980

9081
#define show_bio_op_flags(flags) \
9182
__print_flags(F2FS_BIO_FLAG_MASK(flags), "|", \

0 commit comments

Comments
 (0)