f2fs: move discard parameters into discard_cmd_control
authorKonstantin Vyshetsky <vkon@google.com>
Tue, 14 Dec 2021 01:12:03 +0000 (17:12 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 3 Feb 2022 00:34:46 +0000 (16:34 -0800)
commitd2d8e896485a52554cea486816c171dc7240792e
tree9b4074a5b85d1b3060b7b4a42267cfc7fdd66356
parent7d19e3dab0002e527052b0aaf986e8c32e5537bf
f2fs: move discard parameters into discard_cmd_control

This patch unifies parameters related to how often discard is issued and
how many requests go out at the same time by placing them in
discard_cmd_control. The move will allow the parameters to be modified
in the future without relying on hard-coded values.

Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/segment.c