summaryrefslogtreecommitdiffstats
path: root/fs/lockd/xdr4.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2013-02-04 14:18:02 +0100
committerJ. Bruce Fields <bfields@redhat.com>2013-02-04 23:19:10 +0100
commit0338dd157282c19696d3c32614a748d0ba814b12 (patch)
tree4a42757386eab303fd723bcfbcadf843c921ebc8 /fs/lockd/xdr4.c
parentnfsd: track the number of DRC entries in the cache (diff)
downloadlinux-0338dd157282c19696d3c32614a748d0ba814b12.tar.xz
linux-0338dd157282c19696d3c32614a748d0ba814b12.zip
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 <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/lockd/xdr4.c')
0 files changed, 0 insertions, 0 deletions