OSDN Git Service

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>
Wed, 4 Apr 2018 01:52:47 +0000 (18:52 -0700)
commit214c2461a864a46b11856426b80dc7db453043c5
tree1c06760b93f259e7e26d881b40ceee7fe3cd7e11
parentc79d152094d228080e9895a92feb44ba9d60c798
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