mbox series

[0/7,md-6.15] md: introduce md_submodle_head

Message ID 20250215092225.2427977-1-yukuai1@huaweicloud.com (mailing list archive)
Headers show
Series md: introduce md_submodle_head | expand

Message

Yu Kuai Feb. 15, 2025, 9:22 a.m. UTC
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

 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(-)