f2fs: relocate tracepoint of write_checkpoint
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 16 Dec 2015 00:07:14 +0000 (16:07 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 16 Dec 2015 16:58:06 +0000 (08:58 -0800)
It needs to relocate its location to see exact trace logs.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c

index a4392f06f7339f9654a2ae526d3814ff815a6837..5008b872f3165c76b99519ca739c811a544844d2 100644 (file)
@@ -1130,9 +1130,9 @@ void write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc)
 
        /* do checkpoint periodically */
        sbi->cp_expires = round_jiffies_up(jiffies + HZ * sbi->cp_interval);
+       trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint");
 out:
        mutex_unlock(&sbi->cp_mutex);
-       trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint");
 }
 
 void init_ino_entry_info(struct f2fs_sb_info *sbi)