aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/f2fs/segment.h
diff options
context:
space:
mode:
authorYuwei Guan <Yuwei.Guan@zeekrlife.com>2022-12-13 17:34:19 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2023-01-06 15:13:42 -0800
commit185a453bf1b5688f8c77f2646b0b6f3b1cbdddca (patch)
treefc76d80d488d6be34a592a50d243cb3942a4a0e8 /fs/f2fs/segment.h
parentf2fs: avoid to check PG_error flag (diff)
downloadwireguard-linux-185a453bf1b5688f8c77f2646b0b6f3b1cbdddca.tar.xz
wireguard-linux-185a453bf1b5688f8c77f2646b0b6f3b1cbdddca.zip
f2fs: deliver the accumulated 'issued' to __issue_discard_cmd_orderly()
Any of the following scenarios will send more than the number of max_requests at a time, which will not meet the design of the max_requests limit. - Set max_ordered_discard larger than discard_granularity from userspace. - It is a small size device, discard_granularity can be tuned to 1 in f2fs_tuning_parameters(). We need to deliver the accumulated @issued to __issue_discard_cmd_orderly() to meet the max_requests limit. BTW, convert the parameter type of @issued in __submit_discard_cmd(). Signed-off-by: Yuwei Guan <Yuwei.Guan@zeekrlife.com> Cc: Bagas Sanjaya <bagasdotme@gmail.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.h')
0 files changed, 0 insertions, 0 deletions