f2fs: add mount option for segment allocation policy

This patch adds an mount option, "alloc_mode=%s" having two options, "default"
and "reuse".

In "alloc_mode=reuse" case, f2fs starts to allocate segments from 0'th segment
all the time to reassign segments. It'd be useful for small-sized eMMC parts.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
此提交包含在:
Jaegeuk Kim
2018-02-18 08:50:49 -08:00
父節點 69babac019
當前提交 079396270b
共有 4 個檔案被更改,包括 41 行新增0 行删除

查看文件

@@ -180,6 +180,8 @@ whint_mode=%s Control which write hints are passed down to block
down hints. In "user-based" mode, f2fs tries to pass
down hints given by users. And in "fs-based" mode, f2fs
passes down hints with its policy.
alloc_mode=%s Adjust block allocation policy, which supports "reuse"
and "default".
================================================================================
DEBUGFS ENTRIES