提交 3e173ab5 编写于 作者: G Guoqing Jiang 提交者: Song Liu

md: fix a typo s/creat/create

It actually means create here, so fix the typo.
Reported-by: NSong Liu <liu.song.a23@gmail.com>
Signed-off-by: NGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: NSong Liu <songliubraving@fb.com>
上级 404659cf
...@@ -5771,14 +5771,14 @@ int md_run(struct mddev *mddev) ...@@ -5771,14 +5771,14 @@ int md_run(struct mddev *mddev)
goto bitmap_abort; goto bitmap_abort;
if (mddev->bitmap_info.max_write_behind > 0) { if (mddev->bitmap_info.max_write_behind > 0) {
bool creat_pool = false; bool create_pool = false;
rdev_for_each(rdev, mddev) { rdev_for_each(rdev, mddev) {
if (test_bit(WriteMostly, &rdev->flags) && if (test_bit(WriteMostly, &rdev->flags) &&
rdev_init_serial(rdev)) rdev_init_serial(rdev))
creat_pool = true; create_pool = true;
} }
if (creat_pool && mddev->serial_info_pool == NULL) { if (create_pool && mddev->serial_info_pool == NULL) {
mddev->serial_info_pool = mddev->serial_info_pool =
mempool_create_kmalloc_pool(NR_SERIAL_INFOS, mempool_create_kmalloc_pool(NR_SERIAL_INFOS,
sizeof(struct serial_info)); sizeof(struct serial_info));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册