diff options
author | Jeff Layton <jlayton@redhat.com> | 2013-02-04 14:18:02 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-02-04 23:19:10 +0100 |
commit | 0338dd157282c19696d3c32614a748d0ba814b12 (patch) | |
tree | 4a42757386eab303fd723bcfbcadf843c921ebc8 /fs/lockd/xdr4.c | |
parent | nfsd: track the number of DRC entries in the cache (diff) | |
download | linux-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