f2fs: fix to update mtime correctly
authorChao Yu <yuchao0@huawei.com>
Mon, 4 Jun 2018 15:20:17 +0000 (23:20 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 9 Jul 2018 00:40:58 +0000 (17:40 -0700)
commitc4a1d7bb27990adf9d1ccd0e57e9344292858104
tree40e18691aa195646233c7522e02054d8b9fe6488
parentb693f29b245e15bca23b615b94d573119ba0bfa0
f2fs: fix to update mtime correctly

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 <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/segment.c
fs/f2fs/segment.h