nfsd4: clean up session allocation
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 27 Sep 2010 21:12:05 +0000 (17:12 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Oct 2010 23:29:44 +0000 (19:29 -0400)
commit5b6feee9608dce7afd2646f457c93e612526d1d8
tree4ccb115bdb8e2f404339bce9a825adefc3e3cbd6
parentdd93842457174b847b023314e5a501e5ed45caeb
nfsd4: clean up session allocation

Changes:
- make sure session memory reservation is released on failure
  path.
- use min_t()/min() for more compact code in several places.
- break alloc_init_session into smaller pieces.
- miscellaneous other cleanup.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c