f2fs: fix wrong i_atime recovery
authorChao Yu <yuchao0@huawei.com>
Thu, 3 Nov 2016 16:26:55 +0000 (00:26 +0800)
committerJaegeuk Kim <jaegeuk@google.com>
Mon, 25 Sep 2017 22:12:25 +0000 (15:12 -0700)
commitb2942d459ad6e47c6bcdd55b8df0137f8841d29b
tree710c117ebd451b37973fbc09b3c8e50674560cbc
parentc82c6b15a1b0775c6f72ad43a4ed79d37b9c5352
f2fs: fix wrong i_atime recovery

commit 9f0552e078b8a25fcf9c3950a05ea1398616d2b9 upstream.

Shouldn't update in-memory i_atime with on-disk i_mtime of inode when
recovering inode.

Shuoran found this bug which is hidden for a long time, honour is belong
to him.

Signed-off-by: Shuoran Liu <liushuoran@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/recovery.c