Skip to content

Commit da90b67

Browse files
chaseyuJaegeuk Kim
authored andcommitted
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>
1 parent b5da276 commit da90b67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/f2fs/f2fs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,8 @@ enum {
681681

682682
#define DEFAULT_RETRY_IO_COUNT 8 /* maximum retry read IO or flush count */
683683

684-
/* IO/non-IO congestion wait timeout value, default: 1ms */
685-
#define DEFAULT_SCHEDULE_TIMEOUT (msecs_to_jiffies(1))
684+
/* IO/non-IO congestion wait timeout value, default: 1 jiffies */
685+
#define DEFAULT_SCHEDULE_TIMEOUT 1
686686

687687
/* timeout value injected, default: 1000ms */
688688
#define DEFAULT_FAULT_TIMEOUT (msecs_to_jiffies(1000))

0 commit comments

Comments
 (0)