Lines Matching refs:new
162 struct rpc_cred *cred, *new; in nfs4_root_machine_cred() local
164 new = rpc_lookup_machine_cred(NULL); in nfs4_root_machine_cred()
167 clp->cl_machine_cred = new; in nfs4_root_machine_cred()
411 nfs4_insert_state_owner_locked(struct nfs4_state_owner *new) in nfs4_insert_state_owner_locked() argument
413 struct nfs_server *server = new->so_server; in nfs4_insert_state_owner_locked()
423 if (new->so_cred < sp->so_cred) in nfs4_insert_state_owner_locked()
425 else if (new->so_cred > sp->so_cred) in nfs4_insert_state_owner_locked()
434 err = ida_get_new(&server->openowner_id, &new->so_seqid.owner_id); in nfs4_insert_state_owner_locked()
437 rb_link_node(&new->so_server_node, parent, p); in nfs4_insert_state_owner_locked()
438 rb_insert_color(&new->so_server_node, &server->state_owners); in nfs4_insert_state_owner_locked()
439 return new; in nfs4_insert_state_owner_locked()
558 struct nfs4_state_owner *sp, *new; in nfs4_get_state_owner() local
565 new = nfs4_alloc_state_owner(server, cred, gfp_flags); in nfs4_get_state_owner()
566 if (new == NULL) in nfs4_get_state_owner()
572 sp = nfs4_insert_state_owner_locked(new); in nfs4_get_state_owner()
575 if (sp != new) in nfs4_get_state_owner()
576 nfs4_free_state_owner(new); in nfs4_get_state_owner()
689 struct nfs4_state *state, *new; in nfs4_get_open_state() local
697 new = nfs4_alloc_open_state(); in nfs4_get_open_state()
701 if (state == NULL && new != NULL) { in nfs4_get_open_state()
702 state = new; in nfs4_get_open_state()
716 if (new) in nfs4_get_open_state()
717 nfs4_free_open_state(new); in nfs4_get_open_state()
856 struct nfs4_lock_state *lsp, *new = NULL; in nfs4_get_lock_state() local
863 if (new != NULL) { in nfs4_get_lock_state()
864 list_add(&new->ls_locks, &state->lock_states); in nfs4_get_lock_state()
866 lsp = new; in nfs4_get_lock_state()
867 new = NULL; in nfs4_get_lock_state()
871 new = nfs4_alloc_lock_state(state, owner); in nfs4_get_lock_state()
872 if (new == NULL) in nfs4_get_lock_state()
876 if (new != NULL) in nfs4_get_lock_state()
877 nfs4_free_lock_state(state->owner->so_server, new); in nfs4_get_lock_state()
1023 struct nfs_seqid *new; in nfs_alloc_seqid() local
1025 new = kmalloc(sizeof(*new), gfp_mask); in nfs_alloc_seqid()
1026 if (new == NULL) in nfs_alloc_seqid()
1028 new->sequence = counter; in nfs_alloc_seqid()
1029 INIT_LIST_HEAD(&new->list); in nfs_alloc_seqid()
1030 new->task = NULL; in nfs_alloc_seqid()
1031 return new; in nfs_alloc_seqid()