]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] md: remove MAX_MD_DEVS which is an arbitrary limit
authorNeilBrown <neilb@suse.de>
Tue, 3 Oct 2006 08:15:59 +0000 (01:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:18 +0000 (08:04 -0700)
commite8703fe1f5cdcff686f7eb0a46487b5a04a9324a
tree3b52bfa6ee57d59e059fd0e8d8504dbd3ee073b4
parentd33a56d3639eba077489c937943a32ef6237b1b8
[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>
drivers/md/md.c
include/linux/raid/md_k.h
init/do_mounts_md.c