aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-11-12 15:00:52 -0500
committerJ. Bruce Fields <bfields@redhat.com>2012-11-12 18:55:11 -0500
commit278c931cb05ae624df8c82b6bdfbb0e03392cde7 (patch)
tree95a118939afae6fb4d88184979d38e4d373001fb /fs/nfsd/nfs4state.c
parent8b0554e9a24298c91de89a779a714c87073380a2 (diff)
nfsd: have nfsd4_find_reclaim_client take a char * argument
Currently, it takes a client pointer, but later we're going to need to search for these records without knowing whether a matching client even exists. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index d6b602a92657..18e554942da3 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -4537,19 +4537,16 @@ nfs4_release_reclaim(void)
4537/* 4537/*
4538 * called from OPEN, CLAIM_PREVIOUS with a new clientid. */ 4538 * called from OPEN, CLAIM_PREVIOUS with a new clientid. */
4539struct nfs4_client_reclaim * 4539struct nfs4_client_reclaim *
4540nfsd4_find_reclaim_client(struct nfs4_client *clp) 4540nfsd4_find_reclaim_client(const char *recdir)
4541{ 4541{
4542 unsigned int strhashval; 4542 unsigned int strhashval;
4543 struct nfs4_client_reclaim *crp = NULL; 4543 struct nfs4_client_reclaim *crp = NULL;
4544 4544
4545 dprintk("NFSD: nfs4_find_reclaim_client for %.*s with recdir %s\n", 4545 dprintk("NFSD: nfs4_find_reclaim_client for recdir %s\n", recdir);
4546 clp->cl_name.len, clp->cl_name.data,
4547 clp->cl_recdir);
4548 4546
4549 /* find clp->cl_name in reclaim_str_hashtbl */ 4547 strhashval = clientstr_hashval(recdir);
4550 strhashval = clientstr_hashval(clp->cl_recdir);
4551 list_for_each_entry(crp, &reclaim_str_hashtbl[strhashval], cr_strhash) { 4548 list_for_each_entry(crp, &reclaim_str_hashtbl[strhashval], cr_strhash) {
4552 if (same_name(crp->cr_recdir, clp->cl_recdir)) { 4549 if (same_name(crp->cr_recdir, recdir)) {
4553 return crp; 4550 return crp;
4554 } 4551 }
4555 } 4552 }