f2fs: fix to use jiffies based precision for DEFAULT_SCHEDULE_TIMEOUT

Due to timeout parameter in {io,}_schedule_timeout() is based on jiffies
unit precision. It will lose precision when using msecs_to_jiffies(x)
for conversion.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Chao Yu 2026-01-04 10:07:25 +08:00 committed by Jaegeuk Kim
parent b5da276ae6
commit da90b67155

View File

@ -681,8 +681,8 @@ enum {
#define DEFAULT_RETRY_IO_COUNT 8 /* maximum retry read IO or flush count */
/* IO/non-IO congestion wait timeout value, default: 1ms */
#define DEFAULT_SCHEDULE_TIMEOUT (msecs_to_jiffies(1))
/* IO/non-IO congestion wait timeout value, default: 1 jiffies */
#define DEFAULT_SCHEDULE_TIMEOUT 1
/* timeout value injected, default: 1000ms */
#define DEFAULT_FAULT_TIMEOUT (msecs_to_jiffies(1000))