aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/client.c27
-rw-r--r--fs/nfs/internal.h1
2 files changed, 0 insertions, 28 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index df60d9971b95..34c8d1cbf06e 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -1199,33 +1199,6 @@ error:
1199/* 1199/*
1200 * NFSv4.0 callback thread helper 1200 * NFSv4.0 callback thread helper
1201 * 1201 *
1202 * Find a client by IP address, protocol version, and minorversion
1203 *
1204 * Called from the pg_authenticate method. The callback identifier
1205 * is not used as it has not been decoded.
1206 *
1207 * Returns NULL if no such client
1208 */
1209struct nfs_client *
1210nfs4_find_client_no_ident(const struct sockaddr *addr)
1211{
1212 struct nfs_client *clp;
1213
1214 spin_lock(&nfs_client_lock);
1215 list_for_each_entry(clp, &nfs_client_list, cl_share_link) {
1216 if (nfs4_cb_match_client(addr, clp, 0) == false)
1217 continue;
1218 atomic_inc(&clp->cl_count);
1219 spin_unlock(&nfs_client_lock);
1220 return clp;
1221 }
1222 spin_unlock(&nfs_client_lock);
1223 return NULL;
1224}
1225
1226/*
1227 * NFSv4.0 callback thread helper
1228 *
1229 * Find a client by callback identifier 1202 * Find a client by callback identifier
1230 */ 1203 */
1231struct nfs_client * 1204struct nfs_client *
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 2b9836fe4434..eda4cde40fb2 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -149,7 +149,6 @@ extern struct rpc_program nfs_program;
149 149
150extern void nfs_cleanup_cb_ident_idr(void); 150extern void nfs_cleanup_cb_ident_idr(void);
151extern void nfs_put_client(struct nfs_client *); 151extern void nfs_put_client(struct nfs_client *);
152extern struct nfs_client *nfs4_find_client_no_ident(const struct sockaddr *);
153extern struct nfs_client *nfs4_find_client_ident(int); 152extern struct nfs_client *nfs4_find_client_ident(int);
154extern struct nfs_client * 153extern struct nfs_client *
155nfs4_find_client_sessionid(const struct sockaddr *, struct nfs4_sessionid *); 154nfs4_find_client_sessionid(const struct sockaddr *, struct nfs4_sessionid *);