Lines Matching refs:new_item
81 struct hmdfs_share_item *new_item = NULL; in insert_share_item() local
100 new_item = kmalloc(sizeof(*new_item), GFP_KERNEL); in insert_share_item()
101 if (unlikely(!new_item)) { in insert_share_item()
107 new_item->file = file; in insert_share_item()
109 new_item->relative_path.name = path_name; in insert_share_item()
110 new_item->relative_path.len = relative_path->len; in insert_share_item()
111 memcpy(new_item->cid, cid, HMDFS_CID_SIZE); in insert_share_item()
112 new_item->opened = false; in insert_share_item()
113 new_item->timeout = false; in insert_share_item()
114 list_add_tail(&new_item->list, &st->item_list_head); in insert_share_item()
115 new_item->hst = st; in insert_share_item()
117 INIT_DELAYED_WORK(&new_item->d_work, share_item_timeout_work); in insert_share_item()
118 queue_delayed_work(new_item->hst->share_item_timeout_wq, in insert_share_item()
119 &new_item->d_work, HZ * HMDFS_SHARE_ITEM_TIMEOUT_S); in insert_share_item()