nfsd: create a dedicated slabcache for DRC entries
authorJeff Layton <jlayton@redhat.com>
Mon, 28 Jan 2013 19:41:10 +0000 (14:41 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 4 Feb 2013 14:16:21 +0000 (09:16 -0500)
commit8a8bc40d9ba0890f88dbf7a7c8fa81ddc77c08e3
tree30c6c2dcfeaa727bad2aa73738da8c5c871d0703
parent09662d58d5a2d75c8c29558dda4fc5134ef14b25
nfsd: create a dedicated slabcache for DRC entries

Currently we use kmalloc() which wastes a little bit of memory on each
allocation since it's a power of 2 allocator. Since we're allocating a
1024 of these now, and may need even more later, let's create a new
slabcache for them.

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