mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
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:
parent
b5da276ae6
commit
da90b67155
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user