staging: zcache: don't limit number of pools per client
authorSasha Levin <levinsasha928@gmail.com>
Wed, 6 Jun 2012 19:05:48 +0000 (21:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Jun 2012 00:24:44 +0000 (17:24 -0700)
commitd7be394f7c2869e22d2258a1bba257661ca3fc52
treec42e9ffca2faa2976da6b1d22390aa16a721b357
parent7489301a1590c2771d27a08d41fa2778791cdf9d
staging: zcache: don't limit number of pools per client

Currently the amount of pools each client can use is limited to 16, this is
and arbitrary limit which isn't really required by current implementation.

This places and arbitrary limit on the number of mounted filesystems that
can use cleancache.

This patch removes that limit and uses IDR to do sparse mapping of pools
in each client.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/zcache-main.c