Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Chao Yu and committed by
Jaegeuk Kim
da90b671 b5da276a

+2 -2
+2 -2
fs/f2fs/f2fs.h
··· 681 681 682 682 #define DEFAULT_RETRY_IO_COUNT 8 /* maximum retry read IO or flush count */ 683 683 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 686 686 687 687 /* timeout value injected, default: 1000ms */ 688 688 #define DEFAULT_FAULT_TIMEOUT (msecs_to_jiffies(1000))