[f2fs-dev] [PATCH v2 2/2] f2fs: fix to update mtime correctly

2018-06-04 Thread Chao Yu
From: Chao Yu If we change system time to the past, get_mtime() will return a overflowed time, and SIT_I(sbi)->max_mtime will be udpated incorrectly, this patch fixes the two issues. Signed-off-by: Chao Yu --- v2: - fix to correct return value of get_mtime(). fs/f2fs/checkpoint.c | 2 +- fs/f

[f2fs-dev] [PATCH v2 2/2] f2fs: fix to update mtime correctly

2018-05-30 Thread Chao Yu
From: Chao Yu If we change system time to the past, get_mtime() will return a overflowed time, and SIT_I(sbi)->max_mtime will be udpated incorrectly, this patch fixes the two issues. Signed-off-by: Chao Yu --- v2: - fix to cover base time updating. fs/f2fs/checkpoint.c | 2 +- fs/f2fs/segmen