Re: [PATCH] 1/1: Device-Mapper: Remove 1024 devices limitation

From: Andrew Morton
Date: Thu Jul 01 2004 - 16:42:40 EST


Kevin Corry <kevcorry@xxxxxxxxxx> wrote:
>
> Remove the limitation of 1024 DM devices.

That seems to be an awful lot of fuss just to maintain a bitmap.

What is a realistic useful upper bound on the minors? Would it not be sufficient
to increase the size of the statically allocated bitmap?

Did you consider going to a different data structure altogether? lib/radix-tree.c and
lib/idr.c provide appropriate ones.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/