Lines Matching defs:new
645 * Allocate a new open/delegation state counter. This is needed for
699 find_or_hash_clnt_odstate(struct nfs4_file *fp, struct nfs4_clnt_odstate *new)
704 if (!new)
707 cl = new->co_client;
716 co = new;
718 hash_clnt_odstate_locked(new);
865 * To ensure this we keep a pair of bloom filters ('new' and 'old')
868 * When a delegation is recalled, the filehandle is stored in the "new"
870 * Every 30 seconds we swap the filters and clear the "new" one,
884 int new; /* index into 'set' */
900 memset(bd->set[bd->new], 0,
902 bd->new = 1-bd->new;
929 __set_bit(hash&255, bd->set[bd->new]);
930 __set_bit((hash>>8)&255, bd->set[bd->new]);
931 __set_bit((hash>>16)&255, bd->set[bd->new]);
1657 * room for new connections. For now we just fail the create session.
1712 struct nfsd4_session *new;
1719 new = kzalloc(sizeof(*new) + mem, GFP_KERNEL);
1720 if (!new)
1724 new->se_slots[i] = kzalloc(slotsize, GFP_KERNEL);
1725 if (!new->se_slots[i])
1729 memcpy(&new->se_fchannel, fattrs, sizeof(struct nfsd4_channel_attrs));
1730 memcpy(&new->se_bchannel, battrs, sizeof(struct nfsd4_channel_attrs));
1732 return new;
1735 kfree(new->se_slots[i]);
1736 kfree(new);
1850 static void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, struct nfs4_client *clp, struct nfsd4_create_session *cses)
1855 new->se_client = clp;
1856 gen_sessionid(new);
1858 INIT_LIST_HEAD(&new->se_conns);
1860 new->se_cb_seq_nr = 1;
1861 new->se_flags = cses->flags;
1862 new->se_cb_prog = cses->callback_prog;
1863 new->se_cb_sec = cses->cb_sec;
1864 atomic_set(&new->se_ref, 0);
1865 idx = hash_sessionid(&new->se_sessionid);
1866 list_add(&new->se_hash, &nn->sessionid_hashtbl[idx]);
1868 list_add(&new->se_perclnt, &clp->cl_sessions);
2759 struct rb_node **new = &(root->rb_node), *parent = NULL;
2762 while (*new) {
2763 clp = rb_entry(*new, struct nfs4_client, cl_namenode);
2764 parent = *new;
2767 new = &((*new)->rb_left);
2769 new = &((*new)->rb_right);
2772 rb_link_node(&new_clp->cl_namenode, parent, new);
3024 nfsd4_set_ex_flags(struct nfs4_client *new, struct nfsd4_exchange_id *clid)
3027 new->cl_exchange_flags |= EXCHGID4_FLAG_USE_PNFS_MDS;
3029 new->cl_exchange_flags |= EXCHGID4_FLAG_USE_NON_PNFS;
3033 new->cl_exchange_flags |= EXCHGID4_FLAG_SUPP_MOVED_REFER;
3036 clid->flags = new->cl_exchange_flags;
3081 struct nfs4_client *conf, *new;
3099 new = create_client(exid->clname, rqstp, &verf);
3100 if (new == NULL)
3102 status = copy_impl_id(new, exid);
3133 if (!new->cl_cred.cr_principal &&
3134 !new->cl_cred.cr_raw_principal) {
3138 new->cl_mach_cred = true;
3209 new->cl_minorversion = cstate->minorversion;
3210 new->cl_spo_must_allow.u.words[0] = exid->spo_must_allow[0];
3211 new->cl_spo_must_allow.u.words[1] = exid->spo_must_allow[1];
3213 add_to_unconfirmed(new);
3214 swap(new, conf);
3229 if (new)
3230 expire_client(new);
3382 struct nfsd4_session *new;
3400 new = alloc_session(&cr_ses->fore_channel, &cr_ses->back_channel);
3401 if (!new)
3459 init_session(rqstp, new, conf, cr_ses);
3460 nfsd4_get_session_locked(new);
3462 memcpy(cr_ses->sessionid.data, new->se_sessionid.data,
3471 nfsd4_init_conn(rqstp, conn, new);
3472 nfsd4_put_session(new);
3482 __free_session(new);
3662 static __be32 nfsd4_sequence_check_conn(struct nfsd4_conn *new, struct nfsd4_session *ses)
3670 c = __nfsd4_find_conn(new->cn_xprt, ses);
3676 __nfsd4_hash_conn(new, ses);
3678 ret = nfsd4_register_conn(new);
3681 nfsd4_conn_lost(&new->cn_xpt_user);
3685 free_conn(new);
3720 * sending us now, then this new call is clearly not really a
3968 struct nfs4_client *conf, *new;
3973 new = create_client(clname, rqstp, &clverifier);
3974 if (new == NULL)
3994 copy_clid(new, conf);
3995 gen_confirm(new, nn);
3997 new->cl_minorversion = 0;
3998 gen_callback(new, setclid, rqstp);
3999 add_to_unconfirmed(new);
4000 setclid->se_clientid.cl_boot = new->cl_clientid.cl_boot;
4001 setclid->se_clientid.cl_id = new->cl_clientid.cl_id;
4002 memcpy(setclid->se_confirm.data, new->cl_confirm.data, sizeof(setclid->se_confirm.data));
4003 new = NULL;
4007 if (new)
4008 free_client(new);
4061 } else { /* case 3: normal case; new or rebooted client */
4479 find_or_add_file(struct nfs4_file *new, struct knfsd_fh *fh)
4493 nfsd4_init_file(fh, hashval, new);
4494 fp = new;
4899 /* Set new deny mask */
6589 bool *new)
6596 *new = false;
6611 *new = true;
6641 struct nfs4_ol_stateid **plst, bool *new)
6666 lst = find_or_create_lock_stateid(lo, fi, inode, ost, new);
6699 bool new = false;
6743 &lock_stp, &new);
6880 * If this is a new, never-before-used stateid, and we are
6883 if (status && new)
6911 fh_lock(fhp); /* to block new leases till after test_lock: */
7243 * called from OPEN, CLAIM_PREVIOUS with a new clientid. */