Skip to content

Commit

Permalink
md: move headers out of include/linux/raid/
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and NeilBrown committed Mar 31, 2009
1 parent 2a40a8a commit ef740c3
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion drivers/md/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <linux/mount.h>
#include <linux/buffer_head.h>
#include <linux/raid/md.h>
#include <linux/raid/bitmap.h>
#include "bitmap.h"

/* debug macros */

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion drivers/md/linear.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <linux/raid/linear.h>
#include "linear.h"

/*
* find which device holds a particular offset
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

#include <linux/kthread.h>
#include <linux/raid/md.h>
#include <linux/raid/bitmap.h>
#include <linux/sysctl.h>
#include <linux/buffer_head.h> /* for invalidate_bdev */
#include <linux/poll.h>
Expand All @@ -45,6 +44,7 @@
#include <linux/reboot.h>
#include <linux/file.h>
#include <linux/delay.h>
#include "bitmap.h"

/* 63 partitions with the alternate major number (mdp) */
#define MdpMinorShift 6
Expand Down
2 changes: 1 addition & 1 deletion drivers/md/multipath.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <linux/raid/multipath.h>
#include "multipath.h"

#define MAX_WORK_PER_DISK 128

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion drivers/md/raid0.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <linux/raid/raid0.h>
#include "raid0.h"

static void raid0_unplug(struct request_queue *q)
{
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions drivers/md/raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

#include "dm-bio-list.h"
#include <linux/delay.h>
#include <linux/raid/raid1.h>
#include <linux/raid/bitmap.h>
#include "raid1.h"
#include "bitmap.h"

#define DEBUG 0
#if DEBUG
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions drivers/md/raid10.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

#include "dm-bio-list.h"
#include <linux/delay.h>
#include <linux/raid/raid10.h>
#include <linux/raid/bitmap.h>
#include "raid10.h"
#include "bitmap.h"

/*
* RAID10 provides a combination of RAID0 and RAID1 functionality.
Expand Down
File renamed without changes.
5 changes: 2 additions & 3 deletions drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@
*/

#include <linux/kthread.h>
#include "raid6.h"

#include <linux/raid/bitmap.h>
#include <linux/async_tx.h>
#include "raid6.h"
#include "bitmap.h"

/*
* Stripe cache
Expand Down
2 changes: 1 addition & 1 deletion include/linux/raid/raid5.h → drivers/md/raid5.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ struct r6_state {
* PREREAD_ACTIVE is set, else we set DELAYED which will send it to the delayed queue.
* HANDLE gets cleared if stripe_handle leave nothing locked.
*/


struct disk_info {
mdk_rdev_t *rdev;
Expand Down
2 changes: 1 addition & 1 deletion drivers/md/raid6.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define RAID6_USE_EMPTY_ZERO_PAGE 0

#include <linux/raid/md.h>
#include <linux/raid/raid5.h>
#include "raid5.h"

typedef raid5_conf_t raid6_conf_t; /* Same configuration */

Expand Down

0 comments on commit ef740c3

Please sign in to comment.