f2fs: sysfs: support discard_io_aware
authorChao Yu <chao@kernel.org>
Wed, 22 Nov 2023 14:47:15 +0000 (22:47 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 28 Nov 2023 18:59:51 +0000 (10:59 -0800)
commitd346fa09abff46988de9267b67b6900d9913d5a2
treeda97310077218760313c3b334137fac0ef46d87d
parent8e9cf55ef89c775fdaaa7c6212dbb691420a4673
f2fs: sysfs: support discard_io_aware

It gives a way to enable/disable IO aware feature for background
discard, so that we can tune background discard more precisely
based on undiscard condition. e.g. force to disable IO aware if
there are large number of discard extents, and discard IO may
always be interrupted by frequent common IO.

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