Commit da90b671 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

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: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent b5da276a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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))