f2fs: give an option to enable in-place-updates during fsync to users
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 10 Sep 2014 23:53:02 +0000 (16:53 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 16 Sep 2014 11:10:44 +0000 (04:10 -0700)
commitc1ce1b02bb25640567dc484dc94d3a195d21e705
tree66d98ac24b6959a78618b1706f156f8f76614ad8
parenta7ffdbe22cecaed59b5d76a5f003d68907d64240
f2fs: give an option to enable in-place-updates during fsync to users

If user wrote F2FS_IPU_FSYNC:4 in /sys/fs/f2fs/ipu_policy, f2fs_sync_file
only starts to try in-place-updates.
And, if the number of dirty pages is over /sys/fs/f2fs/min_fsync_blocks, it
keeps out-of-order manner. Otherwise, it triggers in-place-updates.

This may be used by storage showing very high random write performance.

For example, it can be used when,

Seq. writes (Data) + wait + Seq. writes (Node)

is pretty much slower than,

Rand. writes (Data)

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
Documentation/filesystems/f2fs.txt
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/segment.c
fs/f2fs/segment.h
fs/f2fs/super.c