aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 1379d86f7b4f..8770ba75b7b4 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1714,15 +1714,14 @@ static int copy_cred(struct svc_cred *target, struct svc_cred *source)
1714 return 0; 1714 return 0;
1715} 1715}
1716 1716
1717static long long 1717static int
1718compare_blob(const struct xdr_netobj *o1, const struct xdr_netobj *o2) 1718compare_blob(const struct xdr_netobj *o1, const struct xdr_netobj *o2)
1719{ 1719{
1720 long long res; 1720 if (o1->len < o2->len)
1721 1721 return -1;
1722 res = o1->len - o2->len; 1722 if (o1->len > o2->len)
1723 if (res) 1723 return 1;
1724 return res; 1724 return memcmp(o1->data, o2->data, o1->len);
1725 return (long long)memcmp(o1->data, o2->data, o1->len);
1726} 1725}
1727 1726
1728static int same_name(const char *n1, const char *n2) 1727static int same_name(const char *n1, const char *n2)
@@ -1910,7 +1909,7 @@ add_clp_to_name_tree(struct nfs4_client *new_clp, struct rb_root *root)
1910static struct nfs4_client * 1909static struct nfs4_client *
1911find_clp_in_name_tree(struct xdr_netobj *name, struct rb_root *root) 1910find_clp_in_name_tree(struct xdr_netobj *name, struct rb_root *root)
1912{ 1911{
1913 long long cmp; 1912 int cmp;
1914 struct rb_node *node = root->rb_node; 1913 struct rb_node *node = root->rb_node;
1915 struct nfs4_client *clp; 1914 struct nfs4_client *clp;
1916 1915