NFSd: Move default initialisers from create_client() to alloc_client()
authorTrond Myklebust <[email protected]>
Fri, 18 Apr 2014 18:43:56 +0000 (14:43 -0400)
committerJ. Bruce Fields <[email protected]>
Tue, 6 May 2014 16:38:46 +0000 (12:38 -0400)
commit5694c93e6c4954fa9424c215f75eeb919bddad64
tree83baf7f3dfac5133c655190cce5dc0fd0af77550
parentfc208d026be0c7d60db9118583fc62f6ca97743d
NFSd: Move default initialisers from create_client() to alloc_client()

Aside from making it clearer what is non-trivial in create_client(), it
also fixes a bug whereby we can call free_client() before idr_init()
has been called.

Signed-off-by: Trond Myklebust <[email protected]>
Cc: [email protected]
Signed-off-by: J. Bruce Fields <[email protected]>
fs/nfsd/nfs4state.c