Lines Matching refs:new
97 struct nlm_lockowner *res, *new = NULL; in nlm_find_lockowner() local
103 new = kmalloc(sizeof(*new), GFP_KERNEL); in nlm_find_lockowner()
106 if (res == NULL && new != NULL) { in nlm_find_lockowner()
107 res = new; in nlm_find_lockowner()
108 atomic_set(&new->count, 1); in nlm_find_lockowner()
109 new->owner = owner; in nlm_find_lockowner()
110 new->pid = __nlm_alloc_pid(host); in nlm_find_lockowner()
111 new->host = nlm_get_host(host); in nlm_find_lockowner()
112 list_add(&new->list, &host->h_lockowners); in nlm_find_lockowner()
113 new = NULL; in nlm_find_lockowner()
117 kfree(new); in nlm_find_lockowner()
455 static void nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *fl) in nlmclnt_locks_copy_lock() argument
458 new->fl_u.nfs_fl.state = fl->fl_u.nfs_fl.state; in nlmclnt_locks_copy_lock()
459 new->fl_u.nfs_fl.owner = nlm_get_lockowner(fl->fl_u.nfs_fl.owner); in nlmclnt_locks_copy_lock()
460 list_add_tail(&new->fl_u.nfs_fl.list, &fl->fl_u.nfs_fl.owner->host->h_granted); in nlmclnt_locks_copy_lock()