Lines Matching defs:new

858  * Allocate a new open/delegation state counter. This is needed for
912 find_or_hash_clnt_odstate(struct nfs4_file *fp, struct nfs4_clnt_odstate *new)
917 if (!new)
920 cl = new->co_client;
929 co = new;
931 hash_clnt_odstate_locked(new);
1084 * To ensure this we keep a pair of bloom filters ('new' and 'old')
1087 * When a delegation is recalled, the filehandle is stored in the "new"
1089 * Every 30 seconds we swap the filters and clear the "new" one,
1103 int new; /* index into 'set' */
1119 memset(bd->set[bd->new], 0,
1121 bd->new = 1-bd->new;
1148 __set_bit(hash&255, bd->set[bd->new]);
1149 __set_bit((hash>>8)&255, bd->set[bd->new]);
1150 __set_bit((hash>>16)&255, bd->set[bd->new]);
1776 * room for new connections. For now we just fail the create session.
1831 struct nfsd4_session *new;
1834 BUILD_BUG_ON(struct_size(new, se_slots, NFSD_MAX_SLOTS_PER_SESSION)
1837 new = kzalloc(struct_size(new, se_slots, numslots), GFP_KERNEL);
1838 if (!new)
1842 new->se_slots[i] = kzalloc(slotsize, GFP_KERNEL);
1843 if (!new->se_slots[i])
1847 memcpy(&new->se_fchannel, fattrs, sizeof(struct nfsd4_channel_attrs));
1848 memcpy(&new->se_bchannel, battrs, sizeof(struct nfsd4_channel_attrs));
1850 return new;
1853 kfree(new->se_slots[i]);
1854 kfree(new);
1970 static void init_session(struct svc_rqst *rqstp, struct nfsd4_session *new, struct nfs4_client *clp, struct nfsd4_create_session *cses)
1975 new->se_client = clp;
1976 gen_sessionid(new);
1978 INIT_LIST_HEAD(&new->se_conns);
1980 new->se_cb_seq_nr = 1;
1981 new->se_flags = cses->flags;
1982 new->se_cb_prog = cses->callback_prog;
1983 new->se_cb_sec = cses->cb_sec;
1984 atomic_set(&new->se_ref, 0);
1985 idx = hash_sessionid(&new->se_sessionid);
1986 list_add(&new->se_hash, &nn->sessionid_hashtbl[idx]);
1988 list_add(&new->se_perclnt, &clp->cl_sessions);
2953 struct rb_node **new = &(root->rb_node), *parent = NULL;
2956 while (*new) {
2957 clp = rb_entry(*new, struct nfs4_client, cl_namenode);
2958 parent = *new;
2961 new = &((*new)->rb_left);
2963 new = &((*new)->rb_right);
2966 rb_link_node(&new_clp->cl_namenode, parent, new);
3218 nfsd4_set_ex_flags(struct nfs4_client *new, struct nfsd4_exchange_id *clid)
3221 new->cl_exchange_flags |= EXCHGID4_FLAG_USE_PNFS_MDS;
3223 new->cl_exchange_flags |= EXCHGID4_FLAG_USE_NON_PNFS;
3227 new->cl_exchange_flags |= EXCHGID4_FLAG_SUPP_MOVED_REFER;
3230 clid->flags = new->cl_exchange_flags;
3275 struct nfs4_client *conf, *new;
3293 new = create_client(exid->clname, rqstp, &verf);
3294 if (new == NULL)
3296 status = copy_impl_id(new, exid);
3327 if (!new->cl_cred.cr_principal &&
3328 !new->cl_cred.cr_raw_principal) {
3332 new->cl_mach_cred = true;
3401 /* case 1, new owner ID */
3402 trace_nfsd_clid_fresh(new);
3411 new->cl_minorversion = cstate->minorversion;
3412 new->cl_spo_must_allow.u.words[0] = exid->spo_must_allow[0];
3413 new->cl_spo_must_allow.u.words[1] = exid->spo_must_allow[1];
3415 add_to_unconfirmed(new);
3416 swap(new, conf);
3431 if (new)
3432 expire_client(new);
3586 struct nfsd4_session *new;
3604 new = alloc_session(&cr_ses->fore_channel, &cr_ses->back_channel);
3605 if (!new)
3665 init_session(rqstp, new, conf, cr_ses);
3666 nfsd4_get_session_locked(new);
3668 memcpy(cr_ses->sessionid.data, new->se_sessionid.data,
3679 nfsd4_init_conn(rqstp, conn, new);
3680 nfsd4_put_session(new);
3690 __free_session(new);
3870 static __be32 nfsd4_sequence_check_conn(struct nfsd4_conn *new, struct nfsd4_session *ses)
3878 c = __nfsd4_find_conn(new->cn_xprt, ses);
3884 __nfsd4_hash_conn(new, ses);
3886 ret = nfsd4_register_conn(new);
3889 nfsd4_conn_lost(&new->cn_xpt_user);
3893 free_conn(new);
3928 * sending us now, then this new call is clearly not really a
4178 struct nfs4_client *conf, *new;
4183 new = create_client(clname, rqstp, &clverifier);
4184 if (new == NULL)
4202 copy_clid(new, conf);
4203 gen_confirm(new, nn);
4208 trace_nfsd_clid_fresh(new);
4209 new->cl_minorversion = 0;
4210 gen_callback(new, setclid, rqstp);
4211 add_to_unconfirmed(new);
4212 setclid->se_clientid.cl_boot = new->cl_clientid.cl_boot;
4213 setclid->se_clientid.cl_id = new->cl_clientid.cl_id;
4214 memcpy(setclid->se_confirm.data, new->cl_confirm.data, sizeof(setclid->se_confirm.data));
4215 new = NULL;
4219 if (new)
4220 free_client(new);
4743 nfsd4_file_hash_insert(struct nfs4_file *new, const struct svc_fh *fhp)
4767 nfsd4_file_init(fhp, new);
4768 err = rhltable_insert(&nfs4_file_rhltable, &new->fi_rlist,
4773 new->fi_aliased = alias_found;
4774 ret = new;
5241 /* Set new deny mask */
7382 bool *new)
7389 *new = false;
7404 *new = true;
7434 struct nfs4_ol_stateid **plst, bool *new)
7459 lst = find_or_create_lock_stateid(lo, fi, inode, ost, new);
7492 bool new = false;
7532 &lock_stp, &new);
7689 * If this is a new, never-before-used stateid, and we are
7692 if (status && new)
7722 inode_lock(inode); /* to block new leases till after test_lock: */
8059 * called from OPEN, CLAIM_PREVIOUS with a new clientid. */