]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
f2fs: fix to use jiffies based precision for DEFAULT_SCHEDULE_TIMEOUT
authorChao Yu <chao@kernel.org>
Sun, 4 Jan 2026 02:07:25 +0000 (10:07 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 7 Jan 2026 03:17:07 +0000 (03:17 +0000)
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>
fs/f2fs/f2fs.h

index 1d7ad3b860e02a28151a39df61ef805ea713d0eb..a2b5439e7f08cecfd26af73e365e5f5984282878 100644 (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))