f2fs: remain written times to update inode during fsync
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 30 Mar 2018 05:50:41 +0000 (22:50 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 8 Apr 2018 11:14:50 +0000 (04:14 -0700)
commitde465aa57271502dedf29a9d2dfd6198426997fe
treea7529123998137d5e8f05a5af2c96de17be647f2
parentd0ebaf0b37b279185b7691a29bd8e2e9f401733a
f2fs: remain written times to update inode during fsync

This fixes xfstests/generic/392.

The failure was caused by different times between 1) one marked in the last
fsync(2) call and 2) the other given by roll-forward recovery after power-cut.
The reason was that we skipped updating inode block at 1), since its i_size
was recoverable along with 4KB-aligned data writes, which was fixed by:
  "f2fs: fix a wrong condition in f2fs_skip_inode_update"

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/inode.c