Skip to content

Commit ef740c3

Browse files
Christoph Hellwigneilbrown
authored andcommitted
md: move headers out of include/linux/raid/
Move the headers with the local structures for the disciplines and bitmap.h into drivers/md/ so that they are more easily grepable for hacking and not far away. md.h is left where it is for now as there are some uses from the outside. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: NeilBrown <neilb@suse.de>
1 parent 2a40a8a commit ef740c3

16 files changed

Lines changed: 13 additions & 14 deletions

File tree

‎drivers/md/bitmap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <linux/mount.h>
2828
#include <linux/buffer_head.h>
2929
#include <linux/raid/md.h>
30-
#include <linux/raid/bitmap.h>
30+
#include "bitmap.h"
3131

3232
/* debug macros */
3333

‎drivers/md/linear.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1717
*/
1818

19-
#include <linux/raid/linear.h>
19+
#include "linear.h"
2020

2121
/*
2222
* find which device holds a particular offset

‎drivers/md/md.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
#include <linux/kthread.h>
3636
#include <linux/raid/md.h>
37-
#include <linux/raid/bitmap.h>
3837
#include <linux/sysctl.h>
3938
#include <linux/buffer_head.h> /* for invalidate_bdev */
4039
#include <linux/poll.h>
@@ -45,6 +44,7 @@
4544
#include <linux/reboot.h>
4645
#include <linux/file.h>
4746
#include <linux/delay.h>
47+
#include "bitmap.h"
4848

4949
/* 63 partitions with the alternate major number (mdp) */
5050
#define MdpMinorShift 6

‎drivers/md/multipath.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2020
*/
2121

22-
#include <linux/raid/multipath.h>
22+
#include "multipath.h"
2323

2424
#define MAX_WORK_PER_DISK 128
2525

‎drivers/md/raid0.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1919
*/
2020

21-
#include <linux/raid/raid0.h>
21+
#include "raid0.h"
2222

2323
static void raid0_unplug(struct request_queue *q)
2424
{

‎drivers/md/raid1.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333

3434
#include "dm-bio-list.h"
3535
#include <linux/delay.h>
36-
#include <linux/raid/raid1.h>
37-
#include <linux/raid/bitmap.h>
36+
#include "raid1.h"
37+
#include "bitmap.h"
3838

3939
#define DEBUG 0
4040
#if DEBUG

0 commit comments

Comments
 (0)