[PATCH 10/14] f2fs: fix to use jiffies based precision for DEFAULT_SCHEDULE_TIMEOUT

From: Chao Yu
Date: Sat Jan 03 2026 - 21:11:14 EST


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@xxxxxxxxxx>
---
fs/f2fs/f2fs.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index cb9e94904c6b..c4d3b37821d6 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -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))
--
2.49.0