Re: [PATCH 0/7 md-6.15] md: introduce md_submodle_head

Yu Kuai
2025-03-05T01:34:33Z

在 2025/02/15 17:22, Yu Kuai 写道:
> From: Yu Kuai <yukuai3@huawei.com>
>
> This set introduce md_submodle_head and related API to replace
> personality and md-cluter registration, and remove lots of exported
> helpers and global variables.
>
> Also prepare to add kconfig for md-bitmap.
>
> Yu Kuai (7):
> md: merge common code into find_pers()
> md: only include md-cluster.h if necessary
> md: introduce struct md_submodule_head and APIs
> md: switch personalities to use md_submodule_head
> md/md-cluster: cleanup md_cluster_ops reference
> md: don't export md_cluster_ops
> md: switch md-cluster to use md_submodle_head
>

Applied to md-6.15
Thanks

> drivers/md/md-bitmap.c | 8 +-
> drivers/md/md-cluster.c | 18 ++-
> drivers/md/md-cluster.h | 6 +
> drivers/md/md-linear.c | 15 ++-
> drivers/md/md.c | 259 +++++++++++++++++++---------------------
> drivers/md/md.h | 48 +++++---
> drivers/md/raid0.c | 18 +--
> drivers/md/raid1-10.c | 4 +-
> drivers/md/raid1.c | 33 ++---
> drivers/md/raid10.c | 41 ++++---
> drivers/md/raid5.c | 70 +++++++----
> 11 files changed, 297 insertions(+), 223 deletions(-)
>