]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:05 +0000 (15:11 +0200)
commit0cab715836db161afa2ece009729c4ae2e7922de
treec43da495e4a1977ed500504314270545ff02da67
parentde5561be4a68d73fc83565bd2f09281338f95862
f2fs: introduce F2FS_IPU_HONOR_OPU_WRITE ipu policy

[ Upstream commit 1018a5463a063715365784704c4e8cdf2eec4b04 ]

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>
Stable-dep-of: 884ee6dc85b9 ("f2fs: get rid of online repaire on corrupted directory")
Signed-off-by: Sasha Levin <sashal@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