knfsd: move nfsv4 slab creation/destruction to module init/exit
authorJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 1 Aug 2007 19:30:59 +0000 (15:30 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 9 Oct 2007 22:31:56 +0000 (18:31 -0400)
commite8ff2a8453cedf38d6d7a0528cb9c308066a3e3e
tree6987fee75558983f92cbba7385e39acc44f7555e
parent2b47eece1fa519a81c8b802af77a8b8aa44baa10
knfsd: move nfsv4 slab creation/destruction to module init/exit

We have some slabs that the nfs4 server uses to store state objects.
We're currently creating and destroying those slabs whenever the server
is brought up or down.  That seems excessive; may as well just do that
in module initialization and exit.

Also add some minor header cleanup.  (Thanks to Andrew Morton for that
and a compile fix.)

Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
Acked-by: Neil Brown <neilb@suse.de>
fs/nfsd/nfs4state.c
fs/nfsd/nfsctl.c
fs/nfsd/nfssvc.c
include/linux/nfsd/nfsd.h