aboutsummaryrefslogtreecommitdiff
path: root/include/trace/events
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-12-17 17:13:28 +0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:32:35 +0200
commit470669acdcf1512009666fa6c3eeac93cf25190c (patch)
treec273a5fdd0e786a5362ebe876e000fcfc5a7e49d /include/trace/events
parente6ac5795b033d0f9622c0741bd7b7b31e076df19 (diff)
f2fs: support data flush in background
Previously, when finishing a checkpoint, we have persisted all fs meta info including meta inode, node inode, dentry page of directory inode, so, after a sudden power cut, f2fs can recover from last checkpoint with full directory structure. But during checkpoint, we didn't flush dirty pages of regular and symlink inode, so such dirty datas still in memory will be lost in that moment of power off. In order to reduce the chance of lost data, this patch enables f2fs_balance_fs_bg with the ability of data flushing. It will try to flush user data before starting a checkpoint. So user's data written after last checkpoint which may not be fsynced could be saved. When we mount with data_flush option, after every period of cp_interval (could be configured in sysfs: /sys/fs/f2fs/device/cp_interval) seconds user data could be flushed into device once f2fs_balance_fs_bg was called in kworker thread or gc thread. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/trace/events')
0 files changed, 0 insertions, 0 deletions