Commit a17e3924 authored by Li Nan's avatar Li Nan
Browse files

md: factor out a helper exceed_read_errors() to check read_errors

mainline inclusion
from mainline-next-20231220
commit 1979dbbe328ca4e1d0f061c94381cfa03388088d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8T02O

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1979dbbe328ca4e1d0f061c94381cfa03388088d



--------------------------------

Move check_decay_read_errors() to raid1-10.c and factor out a helper
exceed_read_errors() to check if read_errors exceeds the limit, so that
raid1 can also use it. There are no functional changes.

Signed-off-by: default avatarLi Nan <linan122@huawei.com>
Signed-off-by: default avatarSong Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20231215023852.3478228-2-linan666@huaweicloud.com
parent dcf314ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment