mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
NFS: Clean up nfs4_check_serverowner_major_id()
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
14d1bbb0ca
commit
ddfa0d4860
1 changed files with 2 additions and 11 deletions
|
@ -612,17 +612,8 @@ nfs4_check_serverowner_major_id(struct nfs41_server_owner *o1,
|
||||||
struct nfs41_server_owner *o2)
|
struct nfs41_server_owner *o2)
|
||||||
{
|
{
|
||||||
if (o1->major_id_sz != o2->major_id_sz)
|
if (o1->major_id_sz != o2->major_id_sz)
|
||||||
goto out_major_mismatch;
|
return false;
|
||||||
if (memcmp(o1->major_id, o2->major_id, o1->major_id_sz) != 0)
|
return memcmp(o1->major_id, o2->major_id, o1->major_id_sz) == 0;
|
||||||
goto out_major_mismatch;
|
|
||||||
|
|
||||||
dprintk("NFS: --> %s server owner major IDs match\n", __func__);
|
|
||||||
return true;
|
|
||||||
|
|
||||||
out_major_mismatch:
|
|
||||||
dprintk("NFS: --> %s server owner major IDs do not match\n",
|
|
||||||
__func__);
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue