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, 28 Jun 2018 22:49:24 +0000 (15:49 -0700)
commitc9b3f46fd20e01c86a850da2d0178a01bd38afc0
tree2b071f37a9c5292df6ed7f7a1fed91400c1a0eb3
parentcbbd81cf17fe6c166070be24e1014c717186854d
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