diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-01-08 18:51:50 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-01-11 18:36:27 -0500 |
commit | 6beceb5427aa8731f958d2484e0fd8ff21d604dc (patch) | |
tree | 5130a15bba97035a283d99602d8b538e2ec88023 /fs/f2fs/checkpoint.c | |
parent | 9b72a388f5867f4a31113a41d24bbf1026611d7b (diff) |
f2fs: introduce time and interval facility
This patch adds time and interval arrays to store some timing variables.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 5dbafd5e83d9..3842af954cd5 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c | |||
@@ -1139,7 +1139,7 @@ int write_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) | |||
1139 | "checkpoint: version = %llx", ckpt_ver); | 1139 | "checkpoint: version = %llx", ckpt_ver); |
1140 | 1140 | ||
1141 | /* do checkpoint periodically */ | 1141 | /* do checkpoint periodically */ |
1142 | sbi->cp_expires = round_jiffies_up(jiffies + HZ * sbi->cp_interval); | 1142 | f2fs_update_time(sbi, CP_TIME); |
1143 | trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint"); | 1143 | trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint"); |
1144 | out: | 1144 | out: |
1145 | mutex_unlock(&sbi->cp_mutex); | 1145 | mutex_unlock(&sbi->cp_mutex); |