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)
commitb4e7f2c9450968303d24b48fec9da8abebcc0036
treec3fd66317bf1df16cfd939bcf30e643d2146239f
parentaca8a23de60c705e2458b2c6731ad59aa0717f83
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