]> git.baikalelectronics.ru Git - kernel.git/commit
mbcache: Limit the maximum number of cache entries
authorAndreas Gruenbacher <agruen@suse.de>
Mon, 16 Aug 2010 17:05:23 +0000 (19:05 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 18 Aug 2010 10:24:41 +0000 (06:24 -0400)
commit134b33147d177a52672c111b0a2a2484a7032330
tree3e89deaa14c8d72c7484f61c2babc5755a9e991e
parent81fb761dfd7616beecadfaa7227b315640860292
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 <agruen@suse.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/mbcache.c