f2fs: introduce F2FS_IPU_HONOR_OPU_WRITE ipu policy
authorChao Yu <chao@kernel.org>
Fri, 4 Feb 2022 07:19:46 +0000 (15:19 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 7 Feb 2022 19:28:35 +0000 (11:28 -0800)
commit1018a5463a063715365784704c4e8cdf2eec4b04
treed08ac759039bc83427af0554f11a9a789de36e29
parent430f163b01888dc26696365d9c1053ba9d6c7d92
f2fs: introduce F2FS_IPU_HONOR_OPU_WRITE ipu policy

Once F2FS_IPU_FORCE policy is enabled in some cases:
a) f2fs forces to use F2FS_IPU_FORCE in a small-sized volume
b) user sets F2FS_IPU_FORCE policy via sysfs

Then we may fail to defragment file due to IPU policy check, it doesn't
make sense, let's introduce a new IPU policy to allow OPU during file
defragmentation.

In small-sized volume, let's enable F2FS_IPU_HONOR_OPU_WRITE policy
by default.

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