NFS: Clean up nfs4_get_rootfh()
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
4fe6b366d9
commit
539fd1d1f4
|
@ -14,8 +14,6 @@ int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh, bool auth_p
|
||||||
struct nfs_fsinfo fsinfo;
|
struct nfs_fsinfo fsinfo;
|
||||||
int ret = -ENOMEM;
|
int ret = -ENOMEM;
|
||||||
|
|
||||||
dprintk("--> nfs4_get_rootfh()\n");
|
|
||||||
|
|
||||||
fsinfo.fattr = nfs_alloc_fattr();
|
fsinfo.fattr = nfs_alloc_fattr();
|
||||||
if (fsinfo.fattr == NULL)
|
if (fsinfo.fattr == NULL)
|
||||||
goto out;
|
goto out;
|
||||||
|
@ -38,6 +36,5 @@ int nfs4_get_rootfh(struct nfs_server *server, struct nfs_fh *mntfh, bool auth_p
|
||||||
memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid));
|
memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid));
|
||||||
out:
|
out:
|
||||||
nfs_free_fattr(fsinfo.fattr);
|
nfs_free_fattr(fsinfo.fattr);
|
||||||
dprintk("<-- nfs4_get_rootfh() = %d\n", ret);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue