linux-stable/fs/f2fs
Junling Zheng 93cf93f17c f2fs: introduce mount option for fsync mode
Commit "0a007b97aad6"(f2fs: recover directory operations by fsync)
fixed xfstest generic/342 case, but it also increased the written
data and caused the performance degradation. In most cases, there's
no need to do so heavy fsync actually.

So we introduce new mount option "fsync_mode={posix,strict}" to
control the policy of fsync. "fsync_mode=posix" is set by default,
and means that f2fs uses a light fsync, which follows POSIX semantics.
And "fsync_mode=strict" means that it's a heavy fsync, which behaves
in line with xfs, ext4 and btrfs, where generic/342 will pass, but
the performance will regress.

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2018-03-17 13:57:28 +09:00
..
acl.c posix_acl: convert posix_acl.a_refcount from atomic_t to refcount_t 2018-01-02 19:27:28 -08:00
acl.h
checkpoint.c f2fs: flush cp pack except cp pack 2 page at first 2018-03-13 08:05:43 +09:00
data.c f2fs: clean up f2fs_sb_has_xxx functions 2018-03-13 08:05:42 +09:00
debug.c f2fs: inject fault to kzalloc 2018-01-02 19:27:29 -08:00
dir.c f2fs: introduce mount option for fsync mode 2018-03-17 13:57:28 +09:00
extent_cache.c f2fs: remove redundant initialization of pointer 'p' 2018-03-13 08:05:45 +09:00
f2fs.h f2fs: introduce mount option for fsync mode 2018-03-17 13:57:28 +09:00
file.c f2fs: introduce mount option for fsync mode 2018-03-17 13:57:28 +09:00
gc.c f2fs: do gc in greedy mode for whole range if gc_urgent mode is set 2018-03-13 08:05:54 +09:00
gc.h f2fs: add an ioctl to disable GC for specific file 2018-01-22 14:56:35 -08:00
hash.c f2fs: check entire encrypted bigname when finding a dentry 2017-05-04 11:44:35 -04:00
inline.c f2fs: don't put dentry page in pagecache into highmem 2018-03-13 08:05:03 +09:00
inode.c f2fs: don't put dentry page in pagecache into highmem 2018-03-13 08:05:03 +09:00
Kconfig fs/*/Kconfig: drop links to 404-compliant http://acl.bestbits.at 2018-01-01 12:45:37 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
namei.c f2fs: introduce mount option for fsync mode 2018-03-17 13:57:28 +09:00
node.c f2fs: use GFP_F2FS_ZERO for cleanup 2018-01-25 10:39:49 -08:00
node.h f2fs: allow to recover node blocks given updated checkpoint 2018-01-22 14:56:59 -08:00
recovery.c f2fs: fix to handle looped node chain during recovery 2018-03-13 08:05:40 +09:00
segment.c f2fs: support hot file extension 2018-03-13 08:05:57 +09:00
segment.h f2fs: add auto tuning for small devices 2018-03-13 08:05:51 +09:00
shrinker.c f2fs: obsolete ALLOC_NID_LIST list 2017-10-10 12:49:53 -07:00
super.c f2fs: introduce mount option for fsync mode 2018-03-17 13:57:28 +09:00
sysfs.c f2fs: support hot file extension 2018-03-13 08:05:57 +09:00
trace.c f2fs: fix potential hangtask in f2fs_trace_pid 2018-01-02 19:27:30 -08:00
trace.h
xattr.c f2fs: correct removexattr behavior for null valued extended attribute 2018-01-22 14:56:57 -08:00
xattr.h