diff options
| author | Yu Kuai <[email protected]> | 2025-02-15 09:22:20 +0000 |
|---|---|---|
| committer | Yu Kuai <[email protected]> | 2025-03-04 16:26:21 +0000 |
| commit | bf0a73264fa4a66612338da3fbc46262daa97881 (patch) | |
| tree | ca8d9468f27b50e57ef26912a66152c0507e284c /drivers/md/raid1.c | |
| parent | md: merge common code into find_pers() (diff) | |
| download | kernel-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.c | 1 |
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) | \ |
