History

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.

Christoph Hellwig committed 17 years ago

Commit ef740c31 parent 2a40a8a16 files · +13 −14Browse files

Unified · Split

16 files
  1. drivers/md/bitmap.c +1 −1
  2. drivers/md/bitmap.h +0 −0
  3. drivers/md/linear.c +1 −1
  4. drivers/md/linear.h +0 −0
  5. drivers/md/md.c +1 −1
  6. drivers/md/multipath.c +1 −1
  7. drivers/md/multipath.h +0 −0
  8. drivers/md/raid0.c +1 −1
  9. drivers/md/raid0.h +0 −0
  10. drivers/md/raid1.c +2 −2
  11. drivers/md/raid1.h +0 −0
  12. drivers/md/raid10.c +2 −2
  13. drivers/md/raid10.h +0 −0
  14. drivers/md/raid5.c +2 −3
  15. drivers/md/raid5.h +1 −1
  16. drivers/md/raid6.h +1 −1
drivers/md/bitmap.c+1−1
@@ -27,7 +27,7 @@ · 26 unmodified lines
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/bitmap.hrenamed from include/linux/raid/bitmap.h+0−0

File renamed without changes.

drivers/md/linear.c+1−1
@@ -16,7 +16,7 @@ · 15 unmodified lines
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/linear.hrenamed from include/linux/raid/linear.h+0−0

File renamed without changes.

drivers/md/md.c+1−1
@@ -34,7 +34,6 @@ · 33 unmodified lines
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 @@ · 4 unmodified lines
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+1−1
@@ -19,7 +19,7 @@ · 18 unmodified lines
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/multipath.hrenamed from include/linux/raid/multipath.h+0−0

File renamed without changes.

drivers/md/raid0.c+1−1
@@ -18,7 +18,7 @@ · 17 unmodified lines
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/raid0.hrenamed from include/linux/raid/raid0.h+0−0

File renamed without changes.

drivers/md/raid1.c+2−2
@@ -33,8 +33,8 @@ · 32 unmodified lines
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
drivers/md/raid1.hrenamed from include/linux/raid/raid1.h+0−0

File renamed without changes.

drivers/md/raid10.c+2−2
@@ -20,8 +20,8 @@ · 19 unmodified lines
2020
2121 #include "dm-bio-list.h"
2222 #include <linux/delay.h>
23−#include <linux/raid/raid10.h>
24−#include <linux/raid/bitmap.h>
23+#include "raid10.h"
24+#include "bitmap.h"
2525
2626 /*
2727 * RAID10 provides a combination of RAID0 and RAID1 functionality.
drivers/md/raid10.hrenamed from include/linux/raid/raid10.h+0−0

File renamed without changes.

drivers/md/raid5.c+2−3
@@ -44,10 +44,9 @@ · 43 unmodified lines
4444 */
4545
4646 #include <linux/kthread.h>
47−#include "raid6.h"
48−
49−#include <linux/raid/bitmap.h>
5047 #include <linux/async_tx.h>
48+#include "raid6.h"
49+#include "bitmap.h"
5150
5251 /*
5352 * Stripe cache
drivers/md/raid5.hrenamed from include/linux/raid/raid5.h+1−1
@@ -319,7 +319,7 @@ struct r6_state { · 318 unmodified lines
319319 * PREREAD_ACTIVE is set, else we set DELAYED which will send it to the delayed queue.
320320 * HANDLE gets cleared if stripe_handle leave nothing locked.
321321 */
322−
322+
323323
324324 struct disk_info {
325325 mdk_rdev_t *rdev;
drivers/md/raid6.h+1−1
@@ -19,7 +19,7 @@ · 18 unmodified lines
1919 #define RAID6_USE_EMPTY_ZERO_PAGE 0
2020
2121 #include <linux/raid/md.h>
22−#include <linux/raid/raid5.h>
22+#include "raid5.h"
2323
2424 typedef raid5_conf_t raid6_conf_t; /* Same configuration */
2525