diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-10-04 09:08:36 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-10-26 10:44:09 +0200 |
commit | 2ec6f2ef799b94e6e99868ef586cafceaa7c0475 (patch) | |
tree | a0994880207df31cb280755af31656347f122be9 /fs | |
parent | 33da62cf7a9aafdde1ccdb59b4df24ab66c1a827 (diff) | |
download | linux-stable-2ec6f2ef799b94e6e99868ef586cafceaa7c0475.tar.gz linux-stable-2ec6f2ef799b94e6e99868ef586cafceaa7c0475.tar.bz2 linux-stable-2ec6f2ef799b94e6e99868ef586cafceaa7c0475.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/segment.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 1bb7417b4ebb..d6614037e04e 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -822,6 +822,8 @@ static void __remove_discard_cmd(struct f2fs_sb_info *sbi, { 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); if (dc->error == -EOPNOTSUPP) |