]> www.infradead.org Git - users/hch/misc.git/commit
md: don't export md_cluster_ops
authorYu Kuai <yukuai3@huawei.com>
Sat, 15 Feb 2025 09:22:24 +0000 (17:22 +0800)
committerYu Kuai <yukuai@kernel.org>
Tue, 4 Mar 2025 16:28:17 +0000 (00:28 +0800)
commitc594de0455b3d65525bad2020f7f7e41af233045
treef81a5a5c5ec583437dd5fdc1b9f3f578621979e8
parentff84e1b1d215d08651d3adee61d8b834c74ff223
md: don't export md_cluster_ops

Add a new field 'cluster_ops' and initialize it md_setup_cluster(), so
that the gloable variable 'md_cluter_ops' doesn't need to be exported.
Also prepare to switch md-cluster to use md_submod_head.

Link: https://lore.kernel.org/linux-raid/20250215092225.2427977-7-yukuai1@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Su Yue <glass.su@suse.com>
drivers/md/md-bitmap.c
drivers/md/md.c
drivers/md/md.h
drivers/md/raid1-10.c
drivers/md/raid1.c
drivers/md/raid10.c