f2fs: add trace exit in exception path
authorZhang Qilong <zhangqilong3@huawei.com>
Mon, 21 Sep 2020 12:45:44 +0000 (20:45 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 29 Sep 2020 08:48:33 +0000 (01:48 -0700)
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>
fs/f2fs/checkpoint.c

index 6059ce3..3c6fd7a 100644 (file)
@@ -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]);