diff options
author | NeilBrown <neilb@suse.de> | 2006-10-03 04:15:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:04:18 -0400 |
commit | e8703fe1f5cdcff686f7eb0a46487b5a04a9324a (patch) | |
tree | 3b52bfa6ee57d59e059fd0e8d8504dbd3ee073b4 /include/linux/raid | |
parent | d33a56d3639eba077489c937943a32ef6237b1b8 (diff) |
[PATCH] md: remove MAX_MD_DEVS which is an arbitrary limit
Once upon a time we needed to fixed limit to the number of md devices,
probably because we preallocated some array. This need no longer exists, but
we still have an arbitrary limit.
So remove MAX_MD_DEVS and allow as many devices as we can fit into the 'minor'
part of a device number.
Also remove some useless noise at init time (which reports MAX_MD_DEVS) and
remove MD_THREAD_NAME_MAX which hasn't been used for a while.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/raid')
-rw-r--r-- | include/linux/raid/md_k.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index e423dad1a7fd..8245c282168b 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h | |||
@@ -31,18 +31,15 @@ | |||
31 | #define LEVEL_NONE (-1000000) | 31 | #define LEVEL_NONE (-1000000) |
32 | 32 | ||
33 | #define MaxSector (~(sector_t)0) | 33 | #define MaxSector (~(sector_t)0) |
34 | #define MD_THREAD_NAME_MAX 14 | ||
35 | 34 | ||
36 | typedef struct mddev_s mddev_t; | 35 | typedef struct mddev_s mddev_t; |
37 | typedef struct mdk_rdev_s mdk_rdev_t; | 36 | typedef struct mdk_rdev_s mdk_rdev_t; |
38 | 37 | ||
39 | #define MAX_MD_DEVS 256 /* Max number of md dev */ | ||
40 | |||
41 | /* | 38 | /* |
42 | * options passed in raidrun: | 39 | * options passed in raidrun: |
43 | */ | 40 | */ |
44 | 41 | ||
45 | /* Currently this must fix in an 'int' */ | 42 | /* Currently this must fit in an 'int' */ |
46 | #define MAX_CHUNK_SIZE (1<<30) | 43 | #define MAX_CHUNK_SIZE (1<<30) |
47 | 44 | ||
48 | /* | 45 | /* |