diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfs4recover.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c index 43295d45cc2..0f1e2e21f7d 100644 --- a/fs/nfsd/nfs4recover.c +++ b/fs/nfsd/nfs4recover.c | |||
@@ -301,12 +301,13 @@ nfsd4_remove_clid_dir(struct nfs4_client *clp) | |||
301 | 301 | ||
302 | status = nfs4_save_creds(&original_cred); | 302 | status = nfs4_save_creds(&original_cred); |
303 | if (status < 0) | 303 | if (status < 0) |
304 | goto out; | 304 | goto out_drop_write; |
305 | 305 | ||
306 | status = nfsd4_unlink_clid_dir(clp->cl_recdir, HEXDIR_LEN-1); | 306 | status = nfsd4_unlink_clid_dir(clp->cl_recdir, HEXDIR_LEN-1); |
307 | nfs4_reset_creds(original_cred); | 307 | nfs4_reset_creds(original_cred); |
308 | if (status == 0) | 308 | if (status == 0) |
309 | vfs_fsync(rec_file, 0); | 309 | vfs_fsync(rec_file, 0); |
310 | out_drop_write: | ||
310 | mnt_drop_write_file(rec_file); | 311 | mnt_drop_write_file(rec_file); |
311 | out: | 312 | out: |
312 | if (status) | 313 | if (status) |