Lines Matching defs:pos
529 static int nfs4_match_client(struct nfs_client *pos, struct nfs_client *new,
534 if (pos->rpc_ops != new->rpc_ops)
537 if (pos->cl_minorversion != new->cl_minorversion)
540 /* If "pos" isn't marked ready, we can't trust the
541 * remaining fields in "pos", especially the client
544 if (pos->cl_cons_state > NFS_CS_READY) {
545 refcount_inc(&pos->cl_count);
549 *prev = pos;
551 status = nfs_wait_client_init_complete(pos);
558 if (pos->cl_cons_state != NFS_CS_READY)
561 if (pos->cl_clientid != new->cl_clientid)
567 if (!nfs4_match_client_owner_id(pos, new))
591 struct nfs_client *pos, *prev = NULL;
599 list_for_each_entry(pos, &nn->nfs_client_list, cl_share_link) {
601 if (pos == new)
604 status = nfs4_match_client(pos, new, &prev, nn);
616 if ((new != pos) && nfs4_same_verifier(&pos->cl_confirm,
621 * way that a SETCLIENTID_CONFIRM to pos can succeed is
622 * if new and pos point to the same server:
625 refcount_inc(&pos->cl_count);
629 prev = pos;
631 status = nfs4_proc_setclientid_confirm(pos, &clid, cred);
636 nfs4_swap_callback_idents(pos, new);
637 pos->cl_confirm = new->cl_confirm;
638 nfs_mark_client_ready(pos, NFS_CS_READY);
641 *result = pos;
648 nfs4_schedule_path_down_recovery(pos);
758 struct nfs_client *pos, *prev = NULL;
762 list_for_each_entry(pos, &nn->nfs_client_list, cl_share_link) {
764 if (pos == new)
767 status = nfs4_match_client(pos, new, &prev, nn);
778 if (!nfs4_check_serverowner_major_id(pos->cl_serverowner,
783 refcount_inc(&pos->cl_count);
784 *result = pos;