f2fs: no need test opt for f2fs_issue_flush
Subsystems (2)
PATCH 1/1 f2fs: no need test opt for f2fs_issue_flush
This information can now be obtained from the mount, and there isi no need to print it out every time the trace event is triggered.
--- fs/f2fs/segment.c | 3 +-- include/trace/events/f2fs.h | 13 +++---------- 2 files changed, 4 insertions(+), 12 deletions(-)
fs/f2fs/segment.c +1 -2
@@ -519,8 +519,7 @@ static int __submit_flush_wait(struct f2fs_sb_info *sbi, {int ret =blkdev_issue_flush (bdev); -trace_f2fs_issue_flush (bdev,test_opt (sbi,NOBARRIER ), -test_opt (sbi,FLUSH_MERGE ), ret); +trace_f2fs_issue_flush (bdev, ret);if (!ret)f2fs_update_iostat (sbi,NULL ,FS_FLUSH_IO ,0 );return ret;
include/trace/events/f2fs.h +3 -10
@@ -1535,29 +1535,22 @@ TRACE_EVENT(f2fs_issue_reset_zone,TRACE_EVENT (f2fs_issue_flush, - TP_PROTO(struct block_device *dev, unsigned int nobarrier, - unsigned int flush_merge, int ret), + TP_PROTO(struct block_device *dev, int ret), -TP_ARGS (dev, nobarrier, flush_merge, ret), +TP_ARGS (dev, ret),TP_STRUCT__entry ( __field(dev_t, dev) - __field(unsigned int, nobarrier) - __field(unsigned int, flush_merge)__field (int, ret) ),TP_fast_assign ( __entry->dev = dev->bd_dev; - __entry->nobarrier = nobarrier; - __entry->flush_merge = flush_merge; __entry->ret = ret; ), -TP_printk ("dev = (%d,%d), %s %s, ret = %d" , +TP_printk ("dev = (%d,%d), ret = %d" ,show_dev (__entry->dev), - __entry->nobarrier ?"skip (nobarrier)" :"issue" , - __entry->flush_merge ?" with flush_merge" :"" , __entry->ret) );
Signature · 8 lines
2.39.0 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
ping.......
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Chao Yu
maintainerQuoted 2 lines · Yangtao Li
This information can now be obtained from the mount, and there isi no need to print it out every time the trace event is triggered.
It makes sense.
Jaegeuk, is it intentional to print mount option in f2fs_issue_flush tracepoint?
Thanks,
Jaegeuk Kim
maintainerQuoted 8 lines · Chao Yu
Quoted 2 lines · Yangtao Li
This information can now be obtained from the mount, and there isi no need to print it out every time the trace event is triggered.
It makes sense.
Jaegeuk, is it intentional to print mount option in
f2fs_issue_flushtracepoint?
I don't remember tho, do we have a strong reason to change the tracepoint?
Quoted 2 lines
Thanks,