summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2017-10-10 17:02:41 -0400
committerShaohua Li <shli@fb.com>2017-10-16 22:06:36 -0400
commit935fe0983e09f4f7331ebf5ea4ae2124f6e9f9e8 (patch)
treea3debe3ff3a5c4462b416f8992577d30c06a8a8a
parent584ed9fa9532f8b9d5955628ff87ee3b2ab9f5a9 (diff)
md: rename some drivers/md/ files to have an "md-" prefix
Motivated by the desire to illiminate the imprecise nature of DM-specific patches being unnecessarily sent to both the MD maintainer and mailing-list. Which is born out of the fact that DM files also reside in drivers/md/ Now all MD-specific files in drivers/md/ start with either "raid" or "md-" and the MAINTAINERS file has been updated accordingly. Shaohua: don't change module name Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Shaohua Li <shli@fb.com>
-rw-r--r--MAINTAINERS7
-rw-r--r--drivers/md/Makefile5
-rw-r--r--drivers/md/dm-raid.c2
-rw-r--r--drivers/md/md-bitmap.c (renamed from drivers/md/bitmap.c)2
-rw-r--r--drivers/md/md-bitmap.h (renamed from drivers/md/bitmap.h)0
-rw-r--r--drivers/md/md-cluster.c2
-rw-r--r--drivers/md/md-faulty.c (renamed from drivers/md/faulty.c)0
-rw-r--r--drivers/md/md-linear.c (renamed from drivers/md/linear.c)2
-rw-r--r--drivers/md/md-linear.h (renamed from drivers/md/linear.h)0
-rw-r--r--drivers/md/md-multipath.c (renamed from drivers/md/multipath.c)2
-rw-r--r--drivers/md/md-multipath.h (renamed from drivers/md/multipath.h)0
-rw-r--r--drivers/md/md.c2
-rw-r--r--drivers/md/raid1.c2
-rw-r--r--drivers/md/raid10.c2
-rw-r--r--drivers/md/raid5-cache.c2
-rw-r--r--drivers/md/raid5.c2
16 files changed, 20 insertions, 12 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index 65b0c88d5ee0..7649877692b2 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -4091,6 +4091,8 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
4091T: quilt http://people.redhat.com/agk/patches/linux/editing/ 4091T: quilt http://people.redhat.com/agk/patches/linux/editing/
4092S: Maintained 4092S: Maintained
4093F: Documentation/device-mapper/ 4093F: Documentation/device-mapper/
4094F: drivers/md/Makefile
4095F: drivers/md/Kconfig
4094F: drivers/md/dm* 4096F: drivers/md/dm*
4095F: drivers/md/persistent-data/ 4097F: drivers/md/persistent-data/
4096F: include/linux/device-mapper.h 4098F: include/linux/device-mapper.h
@@ -12446,7 +12448,10 @@ M: Shaohua Li <shli@kernel.org>
12446L: linux-raid@vger.kernel.org 12448L: linux-raid@vger.kernel.org
12447T: git git://git.kernel.org/pub/scm/linux/kernel/git/shli/md.git 12449T: git git://git.kernel.org/pub/scm/linux/kernel/git/shli/md.git
12448S: Supported 12450S: Supported
12449F: drivers/md/ 12451F: drivers/md/Makefile
12452F: drivers/md/Kconfig
12453F: drivers/md/md*
12454F: drivers/md/raid*
12450F: include/linux/raid/ 12455F: include/linux/raid/
12451F: include/uapi/linux/raid/ 12456F: include/uapi/linux/raid/
12452 12457
diff --git a/drivers/md/Makefile b/drivers/md/Makefile
index 786ec9e86d65..693602ffdd38 100644
--- a/drivers/md/Makefile
+++ b/drivers/md/Makefile
@@ -18,9 +18,12 @@ dm-cache-y += dm-cache-target.o dm-cache-metadata.o dm-cache-policy.o \
18dm-cache-smq-y += dm-cache-policy-smq.o 18dm-cache-smq-y += dm-cache-policy-smq.o
19dm-era-y += dm-era-target.o 19dm-era-y += dm-era-target.o
20dm-verity-y += dm-verity-target.o 20dm-verity-y += dm-verity-target.o
21md-mod-y += md.o bitmap.o 21md-mod-y += md.o md-bitmap.o
22raid456-y += raid5.o raid5-cache.o raid5-ppl.o 22raid456-y += raid5.o raid5-cache.o raid5-ppl.o
23dm-zoned-y += dm-zoned-target.o dm-zoned-metadata.o dm-zoned-reclaim.o 23dm-zoned-y += dm-zoned-target.o dm-zoned-metadata.o dm-zoned-reclaim.o
24linear-y += md-linear.o
25multipath-y += md-multipath.o
26faulty-y += md-faulty.o
24 27
25# Note: link order is important. All raid personalities 28# Note: link order is important. All raid personalities
26# and must come before md.o, as they each initialise 29# and must come before md.o, as they each initialise
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
index 1ac58c5651b7..252770696a05 100644
--- a/drivers/md/dm-raid.c
+++ b/drivers/md/dm-raid.c
@@ -12,7 +12,7 @@
12#include "raid1.h" 12#include "raid1.h"
13#include "raid5.h" 13#include "raid5.h"
14#include "raid10.h" 14#include "raid10.h"
15#include "bitmap.h" 15#include "md-bitmap.h"
16 16
17#include <linux/device-mapper.h> 17#include <linux/device-mapper.h>
18 18
diff --git a/drivers/md/bitmap.c b/drivers/md/md-bitmap.c
index cae57b5be817..b843b53b0f65 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/md-bitmap.c
@@ -29,7 +29,7 @@
29#include <linux/seq_file.h> 29#include <linux/seq_file.h>
30#include <trace/events/block.h> 30#include <trace/events/block.h>
31#include "md.h" 31#include "md.h"
32#include "bitmap.h" 32#include "md-bitmap.h"
33 33
34static inline char *bmname(struct bitmap *bitmap) 34static inline char *bmname(struct bitmap *bitmap)
35{ 35{
diff --git a/drivers/md/bitmap.h b/drivers/md/md-bitmap.h
index d15721ac07a6..d15721ac07a6 100644
--- a/drivers/md/bitmap.h
+++ b/drivers/md/md-bitmap.h
diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c
index bf41492a2cb0..bc81ecc24c96 100644
--- a/drivers/md/md-cluster.c
+++ b/drivers/md/md-cluster.c
@@ -15,7 +15,7 @@
15#include <linux/sched.h> 15#include <linux/sched.h>
16#include <linux/raid/md_p.h> 16#include <linux/raid/md_p.h>
17#include "md.h" 17#include "md.h"
18#include "bitmap.h" 18#include "md-bitmap.h"
19#include "md-cluster.h" 19#include "md-cluster.h"
20 20
21#define LVB_SIZE 64 21#define LVB_SIZE 64
diff --git a/drivers/md/faulty.c b/drivers/md/md-faulty.c
index 38264b38420f..38264b38420f 100644
--- a/drivers/md/faulty.c
+++ b/drivers/md/md-faulty.c
diff --git a/drivers/md/linear.c b/drivers/md/md-linear.c
index c464fb48039a..773fc70dced7 100644
--- a/drivers/md/linear.c
+++ b/drivers/md/md-linear.c
@@ -23,7 +23,7 @@
23#include <linux/slab.h> 23#include <linux/slab.h>
24#include <trace/events/block.h> 24#include <trace/events/block.h>
25#include "md.h" 25#include "md.h"
26#include "linear.h" 26#include "md-linear.h"
27 27
28/* 28/*
29 * find which device holds a particular offset 29 * find which device holds a particular offset
diff --git a/drivers/md/linear.h b/drivers/md/md-linear.h
index 8d392e6098b3..8d392e6098b3 100644
--- a/drivers/md/linear.h
+++ b/drivers/md/md-linear.h
diff --git a/drivers/md/multipath.c b/drivers/md/md-multipath.c
index b68e0666b9b0..5c70176fa24d 100644
--- a/drivers/md/multipath.c
+++ b/drivers/md/md-multipath.c
@@ -25,7 +25,7 @@
25#include <linux/seq_file.h> 25#include <linux/seq_file.h>
26#include <linux/slab.h> 26#include <linux/slab.h>
27#include "md.h" 27#include "md.h"
28#include "multipath.h" 28#include "md-multipath.h"
29 29
30#define MAX_WORK_PER_DISK 128 30#define MAX_WORK_PER_DISK 128
31 31
diff --git a/drivers/md/multipath.h b/drivers/md/md-multipath.h
index 717c60f62898..717c60f62898 100644
--- a/drivers/md/multipath.h
+++ b/drivers/md/md-multipath.h
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 707471e3cb01..97afb28c6f51 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -69,7 +69,7 @@
69 69
70#include <trace/events/block.h> 70#include <trace/events/block.h>
71#include "md.h" 71#include "md.h"
72#include "bitmap.h" 72#include "md-bitmap.h"
73#include "md-cluster.h" 73#include "md-cluster.h"
74 74
75#ifndef MODULE 75#ifndef MODULE
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 35264ad0ec70..efdabd3040e7 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -43,7 +43,7 @@
43 43
44#include "md.h" 44#include "md.h"
45#include "raid1.h" 45#include "raid1.h"
46#include "bitmap.h" 46#include "md-bitmap.h"
47 47
48#define UNSUPPORTED_MDDEV_FLAGS \ 48#define UNSUPPORTED_MDDEV_FLAGS \
49 ((1L << MD_HAS_JOURNAL) | \ 49 ((1L << MD_HAS_JOURNAL) | \
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 950fbefbedbb..862cbd162e1c 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -29,7 +29,7 @@
29#include "md.h" 29#include "md.h"
30#include "raid10.h" 30#include "raid10.h"
31#include "raid0.h" 31#include "raid0.h"
32#include "bitmap.h" 32#include "md-bitmap.h"
33 33
34/* 34/*
35 * RAID10 provides a combination of RAID0 and RAID1 functionality. 35 * RAID10 provides a combination of RAID0 and RAID1 functionality.
diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c
index 0b7406ac8ce1..2b450eee21fa 100644
--- a/drivers/md/raid5-cache.c
+++ b/drivers/md/raid5-cache.c
@@ -23,7 +23,7 @@
23#include <linux/types.h> 23#include <linux/types.h>
24#include "md.h" 24#include "md.h"
25#include "raid5.h" 25#include "raid5.h"
26#include "bitmap.h" 26#include "md-bitmap.h"
27#include "raid5-log.h" 27#include "raid5-log.h"
28 28
29/* 29/*
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 928e24a07133..10c0d87074f0 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -63,7 +63,7 @@
63#include "md.h" 63#include "md.h"
64#include "raid5.h" 64#include "raid5.h"
65#include "raid0.h" 65#include "raid0.h"
66#include "bitmap.h" 66#include "md-bitmap.h"
67#include "raid5-log.h" 67#include "raid5-log.h"
68 68
69#define UNSUPPORTED_MDDEV_FLAGS (1L << MD_FAILFAST_SUPPORTED) 69#define UNSUPPORTED_MDDEV_FLAGS (1L << MD_FAILFAST_SUPPORTED)