nfsd4: fix recovery-dir leak on nfsd startup failure
authorJeff Layton <jlayton@redhat.com>
Mon, 5 Mar 2012 16:42:36 +0000 (11:42 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 6 Mar 2012 23:13:25 +0000 (18:13 -0500)
commita6d6b7811cad51b763566210fa98cc2786c7b7ee
tree335140bf7d55149136fe4e52d37ef351aebd3388
parent393d8ed80f0e9b7edad737053a5fb375f0bf4849
nfsd4: fix recovery-dir leak on nfsd startup failure

The current code never calls nfsd4_shutdown_recdir if nfs4_state_start
returns an error. Also, it's better to go ahead and consolidate these
functions since one is just a trivial wrapper around the other.

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