Skip to content

Commit 935fe09

Browse files
snitmshligit
authored andcommitted
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>
1 parent 584ed9f commit 935fe09

16 files changed

Lines changed: 20 additions & 12 deletions

‎MAINTAINERS‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4091,6 +4091,8 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
40914091
T: quilt http://people.redhat.com/agk/patches/linux/editing/
40924092
S: Maintained
40934093
F: Documentation/device-mapper/
4094+
F: drivers/md/Makefile
4095+
F: drivers/md/Kconfig
40944096
F: drivers/md/dm*
40954097
F: drivers/md/persistent-data/
40964098
F: include/linux/device-mapper.h
@@ -12446,7 +12448,10 @@ M: Shaohua Li <shli@kernel.org>
1244612448
L: linux-raid@vger.kernel.org
1244712449
T: git git://git.kernel.org/pub/scm/linux/kernel/git/shli/md.git
1244812450
S: Supported
12449-
F: drivers/md/
12451+
F: drivers/md/Makefile
12452+
F: drivers/md/Kconfig
12453+
F: drivers/md/md*
12454+
F: drivers/md/raid*
1245012455
F: include/linux/raid/
1245112456
F: include/uapi/linux/raid/
1245212457

‎drivers/md/Makefile‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ dm-cache-y += dm-cache-target.o dm-cache-metadata.o dm-cache-policy.o \
1818
dm-cache-smq-y += dm-cache-policy-smq.o
1919
dm-era-y += dm-era-target.o
2020
dm-verity-y += dm-verity-target.o
21-
md-mod-y += md.o bitmap.o
21+
md-mod-y += md.o md-bitmap.o
2222
raid456-y += raid5.o raid5-cache.o raid5-ppl.o
2323
dm-zoned-y += dm-zoned-target.o dm-zoned-metadata.o dm-zoned-reclaim.o
24+
linear-y += md-linear.o
25+
multipath-y += md-multipath.o
26+
faulty-y += md-faulty.o
2427

2528
# Note: link order is important. All raid personalities
2629
# and must come before md.o, as they each initialise

‎drivers/md/dm-raid.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "raid1.h"
1313
#include "raid5.h"
1414
#include "raid10.h"
15-
#include "bitmap.h"
15+
#include "md-bitmap.h"
1616

1717
#include <linux/device-mapper.h>
1818

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <linux/seq_file.h>
3030
#include <trace/events/block.h>
3131
#include "md.h"
32-
#include "bitmap.h"
32+
#include "md-bitmap.h"
3333

3434
static inline char *bmname(struct bitmap *bitmap)
3535
{

‎drivers/md/md-cluster.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <linux/sched.h>
1616
#include <linux/raid/md_p.h>
1717
#include "md.h"
18-
#include "bitmap.h"
18+
#include "md-bitmap.h"
1919
#include "md-cluster.h"
2020

2121
#define LVB_SIZE 64
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <linux/slab.h>
2424
#include <trace/events/block.h>
2525
#include "md.h"
26-
#include "linear.h"
26+
#include "md-linear.h"
2727

2828
/*
2929
* find which device holds a particular offset
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <linux/seq_file.h>
2626
#include <linux/slab.h>
2727
#include "md.h"
28-
#include "multipath.h"
28+
#include "md-multipath.h"
2929

3030
#define MAX_WORK_PER_DISK 128
3131

0 commit comments

Comments
 (0)