]> git.baikalelectronics.ru Git - kernel.git/commit
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, 4 Jun 2018 21:31:11 +0000 (14:31 -0700)
commitefa908983f8622ad8ed7f61968465f91d9059e69
treef61d166a69bd130f8cade778733f9170a52ce4c0
parente654b210b664b0cc4794c67a4ea9fbefa3e94035
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