diff options
| author | Yu Kuai <yukuai3@huawei.com> | 2024-06-11 21:22:47 +0800 |
|---|---|---|
| committer | Song Liu <song@kernel.org> | 2024-06-12 16:32:37 +0000 |
| commit | 7d9f107a4e946bb52b7502eed9ed8f316700397e (patch) | |
| tree | e4cf4fb2f6bcd08e31d5bb3027098eda81113f5f /drivers/md/md.h | |
| parent | 5ce10a38590c77f20d0dc706944f79e7d56a7400 (diff) | |
md: use new helpers in md_do_sync()
Make code cleaner. and also use the action_name directly in kernel log:
- "check" instead of "data-check"
- "repair" instead of "requested-resync"
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240611132251.1967786-9-yukuai1@huaweicloud.com
Diffstat (limited to 'drivers/md/md.h')
| -rw-r--r-- | drivers/md/md.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 732053b905b2..ee06cb076f8c 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -432,7 +432,7 @@ struct mddev { * when the sync thread is "frozen" (interrupted) or "idle" (stopped * or finished). It is overwritten when a new sync operation is begun. */ - char *last_sync_action; + const char *last_sync_action; sector_t curr_resync; /* last block scheduled */ /* As resync requests can complete out of order, we cannot easily track * how much resync has been completed. So we occasionally pause until |
