The exit cleanup isn't quite right here.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
host_err = mnt_want_write(fhp->fh_export->ex_path.mnt);
if (host_err)
host_err = mnt_want_write(fhp->fh_export->ex_path.mnt);
if (host_err)
host_err = nfsd_break_lease(rdentry->d_inode);
if (host_err)
host_err = nfsd_break_lease(rdentry->d_inode);
if (host_err)
if (type != S_IFDIR)
host_err = vfs_unlink(dirp, rdentry);
else
host_err = vfs_rmdir(dirp, rdentry);
if (type != S_IFDIR)
host_err = vfs_unlink(dirp, rdentry);
else
host_err = vfs_rmdir(dirp, rdentry);
-out_put:
- dput(rdentry);
-
if (!host_err)
host_err = commit_metadata(fhp);
if (!host_err)
host_err = commit_metadata(fhp);
mnt_drop_write(fhp->fh_export->ex_path.mnt);
mnt_drop_write(fhp->fh_export->ex_path.mnt);
+out_put:
+ dput(rdentry);
+
out_nfserr:
err = nfserrno(host_err);
out:
out_nfserr:
err = nfserrno(host_err);
out: