diff options
author | Zhang Qilong <zhangqilong3@huawei.com> | 2020-09-21 20:45:44 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-09-29 01:48:33 -0700 |
commit | 9b66482282888d02832b7d90239e1cdb18e4b431 (patch) | |
tree | d340b0de67e9f939d921abf21d618bf69666793b /fs/f2fs | |
parent | 4470eb28731102e465d562f38d07fdf0796a58b0 (diff) | |
download | linux-stable-9b66482282888d02832b7d90239e1cdb18e4b431.tar.gz linux-stable-9b66482282888d02832b7d90239e1cdb18e4b431.tar.bz2 linux-stable-9b66482282888d02832b7d90239e1cdb18e4b431.zip |
f2fs: add trace exit in exception path
Missing the trace exit in f2fs_sync_dirty_inodes
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/checkpoint.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 6059ce3758d8..3c6fd7a2a819 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -1047,8 +1047,12 @@ int f2fs_sync_dirty_inodes(struct f2fs_sb_info *sbi, enum inode_type type) get_pages(sbi, is_dir ? F2FS_DIRTY_DENTS : F2FS_DIRTY_DATA)); retry: - if (unlikely(f2fs_cp_error(sbi))) + if (unlikely(f2fs_cp_error(sbi))) { + trace_f2fs_sync_dirty_inodes_exit(sbi->sb, is_dir, + get_pages(sbi, is_dir ? + F2FS_DIRTY_DENTS : F2FS_DIRTY_DATA)); return -EIO; + } spin_lock(&sbi->inode_lock[type]); |