f2fs: recover directory operations by fsync
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 Dec 2017 16:09:44 +0000 (08:09 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 27 Jan 2018 21:29:43 +0000 (13:29 -0800)
commitc6c76a0e61540ad1092b1008db4832767f7f7c4f
treea6a0f0c0d6708d8b0a3b82732af558c814271ae0
parent5943e3992eede25f1222bdcd138dc0032d01839c
f2fs: recover directory operations by fsync

This fixes generic/342 which doesn't recover renamed file which was fsynced
before. It will be done via another fsync on newly created file.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/dir.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/namei.c
include/trace/events/f2fs.h