From: Andreas Gruenbacher Date: Mon, 16 Aug 2010 17:05:23 +0000 (+0200) Subject: mbcache: Limit the maximum number of cache entries X-Git-Tag: v2.6.36-rc2~38^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a48ee8a4ad26c3a538b6fc11a86a8f80c3dce18;p=pandora-kernel.git mbcache: Limit the maximum number of cache entries Limit the maximum number of mb_cache entries depending on the number of hash buckets: if the only limit to the number of cache entries is the available memory the hash chains can grow very long, taking a long time to search. At least partially solves https://bugzilla.lustre.org/show_bug.cgi?id=22771. Signed-off-by: Andreas Gruenbacher Signed-off-by: Al Viro --- Reading git-diff-tree failed