]> git.baikalelectronics.ru Git - kernel.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)
commit27482ddeb0c0a4d9f3abfcaa4cf0072813d8291e
tree3b52bfa6ee57d59e059fd0e8d8504dbd3ee073b4
parent1b15d3c972bf14c84f06086a0ee59303d7502567
[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