Skip to content

Commit 5042a54

Browse files
Zhang Qilonggregkh
authored andcommitted
f2fs: add trace exit in exception path
[ Upstream commit 9b66482 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 51fcce5 commit 5042a54

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

fs/f2fs/checkpoint.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,8 +1047,12 @@ int f2fs_sync_dirty_inodes(struct f2fs_sb_info *sbi, enum inode_type type)
10471047
get_pages(sbi, is_dir ?
10481048
F2FS_DIRTY_DENTS : F2FS_DIRTY_DATA));
10491049
retry:
1050-
if (unlikely(f2fs_cp_error(sbi)))
1050+
if (unlikely(f2fs_cp_error(sbi))) {
1051+
trace_f2fs_sync_dirty_inodes_exit(sbi->sb, is_dir,
1052+
get_pages(sbi, is_dir ?
1053+
F2FS_DIRTY_DENTS : F2FS_DIRTY_DATA));
10511054
return -EIO;
1055+
}
10521056

10531057
spin_lock(&sbi->inode_lock[type]);
10541058

0 commit comments

Comments
 (0)