aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2025-02-15 09:22:20 +0000
committerYu Kuai <[email protected]>2025-03-04 16:26:21 +0000
commitbf0a73264fa4a66612338da3fbc46262daa97881 (patch)
treeca8d9468f27b50e57ef26912a66152c0507e284c /drivers/md/raid1.c
parentmd: merge common code into find_pers() (diff)
downloadkernel-bf0a73264fa4a66612338da3fbc46262daa97881.tar.gz
kernel-bf0a73264fa4a66612338da3fbc46262daa97881.zip
md: only include md-cluster.h if necessary
md-cluster is only supportted by raid1 and raid10, there is no need to include md-cluster.h for other personalities. Also move APIs that is only used in md-cluster.c from md.h to md-cluster.h. Link: https://lore.kernel.org/linux-raid/[email protected] Signed-off-by: Yu Kuai <[email protected]> Reviewed-by: Su Yue <[email protected]>
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index a87eb9a3b016..789e8b73df9b 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -36,6 +36,7 @@
#include "md.h"
#include "raid1.h"
#include "md-bitmap.h"
+#include "md-cluster.h"
#define UNSUPPORTED_MDDEV_FLAGS \
((1L << MD_HAS_JOURNAL) | \