OSDN Git Service

f2fs: add mount option for segment allocation policy
authorJaegeuk Kim <jaegeuk@kernel.org>
Sun, 18 Feb 2018 16:50:49 +0000 (08:50 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 12 Mar 2018 23:05:50 +0000 (08:05 +0900)
commit079396270b0f1e98496ef7672dd754bdd42574dc
treed43fd93275089f03879da9315eafb5cf6b90b854
parent69babac019337b35aae5644ccf8089243c749d4c
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>
Documentation/filesystems/f2fs.txt
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c