Lines Matching refs:new
163 struct rpc_cred *cred, *new; in nfs4_root_machine_cred() local
165 new = rpc_lookup_machine_cred(NULL); in nfs4_root_machine_cred()
168 clp->cl_machine_cred = new; in nfs4_root_machine_cred()
415 nfs4_insert_state_owner_locked(struct nfs4_state_owner *new) in nfs4_insert_state_owner_locked() argument
417 struct nfs_server *server = new->so_server; in nfs4_insert_state_owner_locked()
427 if (new->so_cred < sp->so_cred) in nfs4_insert_state_owner_locked()
429 else if (new->so_cred > sp->so_cred) in nfs4_insert_state_owner_locked()
438 err = ida_get_new(&server->openowner_id, &new->so_seqid.owner_id); in nfs4_insert_state_owner_locked()
441 rb_link_node(&new->so_server_node, parent, p); in nfs4_insert_state_owner_locked()
442 rb_insert_color(&new->so_server_node, &server->state_owners); in nfs4_insert_state_owner_locked()
443 return new; in nfs4_insert_state_owner_locked()
562 struct nfs4_state_owner *sp, *new; in nfs4_get_state_owner() local
569 new = nfs4_alloc_state_owner(server, cred, gfp_flags); in nfs4_get_state_owner()
570 if (new == NULL) in nfs4_get_state_owner()
576 sp = nfs4_insert_state_owner_locked(new); in nfs4_get_state_owner()
579 if (sp != new) in nfs4_get_state_owner()
580 nfs4_free_state_owner(new); in nfs4_get_state_owner()
708 struct nfs4_state *state, *new; in nfs4_get_open_state() local
716 new = nfs4_alloc_open_state(); in nfs4_get_open_state()
720 if (state == NULL && new != NULL) { in nfs4_get_open_state()
721 state = new; in nfs4_get_open_state()
735 if (new) in nfs4_get_open_state()
736 nfs4_free_open_state(new); in nfs4_get_open_state()
875 struct nfs4_lock_state *lsp, *new = NULL; in nfs4_get_lock_state() local
882 if (new != NULL) { in nfs4_get_lock_state()
883 list_add(&new->ls_locks, &state->lock_states); in nfs4_get_lock_state()
885 lsp = new; in nfs4_get_lock_state()
886 new = NULL; in nfs4_get_lock_state()
890 new = nfs4_alloc_lock_state(state, owner); in nfs4_get_lock_state()
891 if (new == NULL) in nfs4_get_lock_state()
895 if (new != NULL) in nfs4_get_lock_state()
896 nfs4_free_lock_state(state->owner->so_server, new); in nfs4_get_lock_state()
1035 struct nfs_seqid *new; in nfs_alloc_seqid() local
1037 new = kmalloc(sizeof(*new), gfp_mask); in nfs_alloc_seqid()
1038 if (new == NULL) in nfs_alloc_seqid()
1040 new->sequence = counter; in nfs_alloc_seqid()
1041 INIT_LIST_HEAD(&new->list); in nfs_alloc_seqid()
1042 new->task = NULL; in nfs_alloc_seqid()
1043 return new; in nfs_alloc_seqid()