f2fs: trace f2fs_remove_discard
This patch adds tracepoint to trace f2fs_remove_discard. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
33da62cf7a
commit
2ec6f2ef79
|
@ -822,6 +822,8 @@ static void __remove_discard_cmd(struct f2fs_sb_info *sbi,
|
||||||
{
|
{
|
||||||
struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info;
|
struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info;
|
||||||
|
|
||||||
|
trace_f2fs_remove_discard(dc->bdev, dc->start, dc->len);
|
||||||
|
|
||||||
f2fs_bug_on(sbi, dc->ref);
|
f2fs_bug_on(sbi, dc->ref);
|
||||||
|
|
||||||
if (dc->error == -EOPNOTSUPP)
|
if (dc->error == -EOPNOTSUPP)
|
||||||
|
|
|
@ -1286,6 +1286,13 @@ DEFINE_EVENT(f2fs_discard, f2fs_issue_discard,
|
||||||
TP_ARGS(dev, blkstart, blklen)
|
TP_ARGS(dev, blkstart, blklen)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
DEFINE_EVENT(f2fs_discard, f2fs_remove_discard,
|
||||||
|
|
||||||
|
TP_PROTO(struct block_device *dev, block_t blkstart, block_t blklen),
|
||||||
|
|
||||||
|
TP_ARGS(dev, blkstart, blklen)
|
||||||
|
);
|
||||||
|
|
||||||
TRACE_EVENT(f2fs_issue_reset_zone,
|
TRACE_EVENT(f2fs_issue_reset_zone,
|
||||||
|
|
||||||
TP_PROTO(struct block_device *dev, block_t blkstart),
|
TP_PROTO(struct block_device *dev, block_t blkstart),
|
||||||
|
|
Loading…
Reference in New Issue