f2fs: enforce fsync_mode=strict for renamed directory
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 25 Apr 2018 04:43:01 +0000 (22:43 -0600)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 31 May 2018 18:31:48 +0000 (11:31 -0700)
commitade990f95eed818d24d6b6d48f4b4af0aaf55d97
tree9b6906170131736d4899c801cf0e9c5235914ced
parent8a29c1260e24e7c9c6ab138aa0017558d8b28208
f2fs: enforce fsync_mode=strict for renamed directory

This is to give a option for user to be able to recover B/foo in the below
case.

mkdir A
sync()
rename(A, B)
creat (B/foo)
fsync (B/foo)
---crash---

Sugessted-by: Velayudhan Pillai <vijay@cs.utexas.edu>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c