nfsd: introduce helpers for generic resources init and shutdown
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Thu, 6 Dec 2012 11:23:29 +0000 (14:23 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 10 Dec 2012 21:25:39 +0000 (16:25 -0500)
commitbda9cac1db8ab044e9edbfe5730283016b67d451
tree1b126e8bdbcc7938290879e7d899d839d5d3130f
parent9dd9845f084cda07ce00cca32a5ba8fbcbbfbcaf
nfsd: introduce helpers for generic resources init and shutdown

NFSd have per-net resources and resources, used globally.
Let's move generic resources init and shutdown to separated functions since
they are going to be allocated on first NFSd service start and destroyed after
last NFSd service shutdown.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfssvc.c