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.

Signed-off-by: Chaitanya Kulkarni <[email protected]>
---
 include/trace/events/f2fs.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h
index 53b96f12300c..ec4dba5a4c30 100644
--- a/include/trace/events/f2fs.h
+++ b/include/trace/events/f2fs.h
@@ -1045,7 +1045,8 @@ DECLARE_EVENT_CLASS(f2fs__submit_page_bio,
                (unsigned long)__entry->index,
                (unsigned long long)__entry->old_blkaddr,
                (unsigned long long)__entry->new_blkaddr,
-               show_bio_type(__entry->op, __entry->op_flags),
+               blk_op_str(__entry->op),
+               show_bio_op_flags(__entry->op_flags),
                show_block_temp(__entry->temp),
                show_block_type(__entry->type))
 );
@@ -1097,7 +1098,8 @@ DECLARE_EVENT_CLASS(f2fs__bio,
        TP_printk("dev = (%d,%d)/(%d,%d), rw = %s(%s), %s, sector = %lld, size 
= %u",
                show_dev(__entry->target),
                show_dev(__entry->dev),
-               show_bio_type(__entry->op, __entry->op_flags),
+               blk_op_str(__entry->op),
+               show_bio_op_flags(__entry->op_flags),
                show_block_type(__entry->type),
                (unsigned long long)__entry->sector,
                __entry->size)
-- 
2.19.1

Reply via email to