diff options
| author | Yu Kuai <yukuai3@huawei.com> | 2025-02-15 17:22:20 +0800 |
|---|---|---|
| committer | Yu Kuai <yukuai@kernel.org> | 2025-03-05 00:26:21 +0800 |
| commit | bf0a73264fa4a66612338da3fbc46262daa97881 (patch) | |
| tree | ca8d9468f27b50e57ef26912a66152c0507e284c /drivers/md/md-bitmap.c | |
| parent | 9faab548974e3eb858250fea1ab7e823a689b44b (diff) | |
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/20250215092225.2427977-3-yukuai1@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Su Yue <glass.su@suse.com>
Diffstat (limited to 'drivers/md/md-bitmap.c')
| -rw-r--r-- | drivers/md/md-bitmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md-bitmap.c b/drivers/md/md-bitmap.c index 23c09d22fcdb..71aa7dc80e26 100644 --- a/drivers/md/md-bitmap.c +++ b/drivers/md/md-bitmap.c @@ -29,8 +29,10 @@ #include <linux/buffer_head.h> #include <linux/seq_file.h> #include <trace/events/block.h> + #include "md.h" #include "md-bitmap.h" +#include "md-cluster.h" #define BITMAP_MAJOR_LO 3 /* version 4 insists the bitmap is in little-endian order |