• Home
  • Raw
  • Download

Lines Matching refs:new

166 	struct rpc_cred *cred, *new;  in nfs4_root_machine_cred()  local
168 new = rpc_lookup_machine_cred(NULL); in nfs4_root_machine_cred()
171 clp->cl_machine_cred = new; in nfs4_root_machine_cred()
421 nfs4_insert_state_owner_locked(struct nfs4_state_owner *new) in nfs4_insert_state_owner_locked() argument
423 struct nfs_server *server = new->so_server; in nfs4_insert_state_owner_locked()
433 if (new->so_cred < sp->so_cred) in nfs4_insert_state_owner_locked()
435 else if (new->so_cred > sp->so_cred) in nfs4_insert_state_owner_locked()
444 err = ida_get_new(&server->openowner_id, &new->so_seqid.owner_id); in nfs4_insert_state_owner_locked()
447 rb_link_node(&new->so_server_node, parent, p); in nfs4_insert_state_owner_locked()
448 rb_insert_color(&new->so_server_node, &server->state_owners); in nfs4_insert_state_owner_locked()
449 return new; in nfs4_insert_state_owner_locked()
565 struct nfs4_state_owner *sp, *new; in nfs4_get_state_owner() local
572 new = nfs4_alloc_state_owner(server, cred, gfp_flags); in nfs4_get_state_owner()
573 if (new == NULL) in nfs4_get_state_owner()
579 sp = nfs4_insert_state_owner_locked(new); in nfs4_get_state_owner()
582 if (sp != new) in nfs4_get_state_owner()
583 nfs4_free_state_owner(new); in nfs4_get_state_owner()
711 struct nfs4_state *state, *new; in nfs4_get_open_state() local
719 new = nfs4_alloc_open_state(); in nfs4_get_open_state()
723 if (state == NULL && new != NULL) { in nfs4_get_open_state()
724 state = new; in nfs4_get_open_state()
738 if (new) in nfs4_get_open_state()
739 nfs4_free_open_state(new); in nfs4_get_open_state()
892 struct nfs4_lock_state *lsp, *new = NULL; in nfs4_get_lock_state() local
899 if (new != NULL) { in nfs4_get_lock_state()
900 list_add(&new->ls_locks, &state->lock_states); in nfs4_get_lock_state()
902 lsp = new; in nfs4_get_lock_state()
903 new = NULL; in nfs4_get_lock_state()
907 new = nfs4_alloc_lock_state(state, owner); in nfs4_get_lock_state()
908 if (new == NULL) in nfs4_get_lock_state()
912 if (new != NULL) in nfs4_get_lock_state()
913 nfs4_free_lock_state(state->owner->so_server, new); in nfs4_get_lock_state()
1060 struct nfs_seqid *new; in nfs_alloc_seqid() local
1062 new = kmalloc(sizeof(*new), gfp_mask); in nfs_alloc_seqid()
1063 if (new == NULL) in nfs_alloc_seqid()
1065 new->sequence = counter; in nfs_alloc_seqid()
1066 INIT_LIST_HEAD(&new->list); in nfs_alloc_seqid()
1067 new->task = NULL; in nfs_alloc_seqid()
1068 return new; in nfs_alloc_seqid()