diff options
author | Li Nan <linan122@huawei.com> | 2023-12-15 03:38:51 +0100 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-12-16 00:22:15 +0100 |
commit | 1979dbbe328ca4e1d0f061c94381cfa03388088d (patch) | |
tree | 57a87fab3d75f2a65e7d211ba644b47aa6109ade /drivers/md/raid1.c | |
parent | md: Whenassemble the array, consult the superblock of the freshest device (diff) | |
download | linux-1979dbbe328ca4e1d0f061c94381cfa03388088d.tar.xz linux-1979dbbe328ca4e1d0f061c94381cfa03388088d.zip |
md: factor out a helper exceed_read_errors() to check read_errors
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: Li Nan <linan122@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20231215023852.3478228-2-linan666@huaweicloud.com
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 19c9bf0060ae..8c65ee0c4445 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -49,6 +49,7 @@ static void lower_barrier(struct r1conf *conf, sector_t sector_nr); #define raid1_log(md, fmt, args...) \ do { if ((md)->queue) blk_add_trace_msg((md)->queue, "raid1 " fmt, ##args); } while (0) +#define RAID_1_10_NAME "raid1" #include "raid1-10.c" #define START(node) ((node)->start) |