]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: register a shrinker for DRC cache entries
authorJeff Layton <jlayton@redhat.com>
Mon, 4 Feb 2013 13:18:06 +0000 (08:18 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 4 Feb 2013 22:19:13 +0000 (17:19 -0500)
commit29821906802a723b5400d59c193b8ffe85ab9e0a
treec3fd66317bf1df16cfd939bcf30e643d2146239f
parent9301cc65c9e63c74ad088dcad4726002c5fc3e91
nfsd: register a shrinker for DRC cache entries

Since we dynamically allocate them now, allow the system to call us up
to release them if it gets low on memory. Since these entries aren't
replaceable, only free ones that are expired or that are over the cap.
The the seeks value is set to '1' however to indicate that freeing the
these entries is low-cost.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfscache.c