Skip to content

Commit 252cf8c

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: fix to show simulate_lock_timeout correctly
Commit d36de29 ("f2fs: sysfs: introduce inject_lock_timeout") introduces a bug as below, fix it. cat /sys/fs/f2fs/vdx/inject_lock_timeout s/fs/f2fs/vdx/inject_lock_timeout: Invalid argument Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 1120764 commit 252cf8c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fs/f2fs/sysfs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ static unsigned char *__struct_ptr(struct f2fs_sb_info *sbi, int struct_type)
8686
return (unsigned char *)sbi;
8787
#ifdef CONFIG_F2FS_FAULT_INJECTION
8888
else if (struct_type == FAULT_INFO_RATE ||
89-
struct_type == FAULT_INFO_TYPE)
89+
struct_type == FAULT_INFO_TYPE ||
90+
struct_type == FAULT_INFO_TIMEOUT)
9091
return (unsigned char *)&F2FS_OPTION(sbi).fault_info;
9192
#endif
9293
#ifdef CONFIG_F2FS_STAT_FS

0 commit comments

Comments
 (0)