diff options
Diffstat (limited to 'include/linux/raid/md_k.h')
-rw-r--r-- | include/linux/raid/md_k.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index d28890295852..8245c282168b 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h | |||
@@ -18,6 +18,8 @@ | |||
18 | /* and dm-bio-list.h is not under include/linux because.... ??? */ | 18 | /* and dm-bio-list.h is not under include/linux because.... ??? */ |
19 | #include "../../../drivers/md/dm-bio-list.h" | 19 | #include "../../../drivers/md/dm-bio-list.h" |
20 | 20 | ||
21 | #ifdef CONFIG_BLOCK | ||
22 | |||
21 | #define LEVEL_MULTIPATH (-4) | 23 | #define LEVEL_MULTIPATH (-4) |
22 | #define LEVEL_LINEAR (-1) | 24 | #define LEVEL_LINEAR (-1) |
23 | #define LEVEL_FAULTY (-5) | 25 | #define LEVEL_FAULTY (-5) |
@@ -29,18 +31,15 @@ | |||
29 | #define LEVEL_NONE (-1000000) | 31 | #define LEVEL_NONE (-1000000) |
30 | 32 | ||
31 | #define MaxSector (~(sector_t)0) | 33 | #define MaxSector (~(sector_t)0) |
32 | #define MD_THREAD_NAME_MAX 14 | ||
33 | 34 | ||
34 | typedef struct mddev_s mddev_t; | 35 | typedef struct mddev_s mddev_t; |
35 | typedef struct mdk_rdev_s mdk_rdev_t; | 36 | typedef struct mdk_rdev_s mdk_rdev_t; |
36 | 37 | ||
37 | #define MAX_MD_DEVS 256 /* Max number of md dev */ | ||
38 | |||
39 | /* | 38 | /* |
40 | * options passed in raidrun: | 39 | * options passed in raidrun: |
41 | */ | 40 | */ |
42 | 41 | ||
43 | /* Currently this must fix in an 'int' */ | 42 | /* Currently this must fit in an 'int' */ |
44 | #define MAX_CHUNK_SIZE (1<<30) | 43 | #define MAX_CHUNK_SIZE (1<<30) |
45 | 44 | ||
46 | /* | 45 | /* |
@@ -114,7 +113,11 @@ struct mddev_s | |||
114 | dev_t unit; | 113 | dev_t unit; |
115 | int md_minor; | 114 | int md_minor; |
116 | struct list_head disks; | 115 | struct list_head disks; |
117 | int sb_dirty; | 116 | unsigned long flags; |
117 | #define MD_CHANGE_DEVS 0 /* Some device status has changed */ | ||
118 | #define MD_CHANGE_CLEAN 1 /* transition to or from 'clean' */ | ||
119 | #define MD_CHANGE_PENDING 2 /* superblock update in progress */ | ||
120 | |||
118 | int ro; | 121 | int ro; |
119 | 122 | ||
120 | struct gendisk *gendisk; | 123 | struct gendisk *gendisk; |
@@ -362,5 +365,6 @@ static inline void safe_put_page(struct page *p) | |||
362 | if (p) put_page(p); | 365 | if (p) put_page(p); |
363 | } | 366 | } |
364 | 367 | ||
368 | #endif /* CONFIG_BLOCK */ | ||
365 | #endif | 369 | #endif |
366 | 370 | ||