From: Jeff Layton Date: Mon, 4 Feb 2013 13:18:02 +0000 (-0500) Subject: nfsd: dynamically allocate DRC entries X-Git-Tag: v3.9-rc1~40^2~28 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0338dd157282c19696d3c32614a748d0ba814b12;p=pandora-kernel.git nfsd: dynamically allocate DRC entries The existing code keeps a fixed-size cache of 1024 entries. This is much too small for a busy server, and wastes memory on an idle one. This patch changes the code to dynamically allocate and free these cache entries. A cap on the number of entries is retained, but it's much larger than the existing value and now scales with the amount of low memory in the machine. Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed