Lines Matching refs:tmp_list
751 struct file_list *tmp_list, *tmp_next_list; in cifs_close_deferred_file() local
766 tmp_list = kmalloc(sizeof(struct file_list), GFP_ATOMIC); in cifs_close_deferred_file()
767 if (tmp_list == NULL) in cifs_close_deferred_file()
769 tmp_list->cfile = cfile; in cifs_close_deferred_file()
770 list_add_tail(&tmp_list->list, &file_head); in cifs_close_deferred_file()
776 list_for_each_entry_safe(tmp_list, tmp_next_list, &file_head, list) { in cifs_close_deferred_file()
777 _cifsFileInfo_put(tmp_list->cfile, false, false); in cifs_close_deferred_file()
778 list_del(&tmp_list->list); in cifs_close_deferred_file()
779 kfree(tmp_list); in cifs_close_deferred_file()
787 struct file_list *tmp_list, *tmp_next_list; in cifs_close_all_deferred_files() local
799 tmp_list = kmalloc(sizeof(struct file_list), GFP_ATOMIC); in cifs_close_all_deferred_files()
800 if (tmp_list == NULL) in cifs_close_all_deferred_files()
802 tmp_list->cfile = cfile; in cifs_close_all_deferred_files()
803 list_add_tail(&tmp_list->list, &file_head); in cifs_close_all_deferred_files()
809 list_for_each_entry_safe(tmp_list, tmp_next_list, &file_head, list) { in cifs_close_all_deferred_files()
810 _cifsFileInfo_put(tmp_list->cfile, true, false); in cifs_close_all_deferred_files()
811 list_del(&tmp_list->list); in cifs_close_all_deferred_files()
812 kfree(tmp_list); in cifs_close_all_deferred_files()
819 struct file_list *tmp_list, *tmp_next_list; in cifs_close_deferred_file_under_dentry() local
836 tmp_list = kmalloc(sizeof(struct file_list), GFP_ATOMIC); in cifs_close_deferred_file_under_dentry()
837 if (tmp_list == NULL) in cifs_close_deferred_file_under_dentry()
839 tmp_list->cfile = cfile; in cifs_close_deferred_file_under_dentry()
840 list_add_tail(&tmp_list->list, &file_head); in cifs_close_deferred_file_under_dentry()
847 list_for_each_entry_safe(tmp_list, tmp_next_list, &file_head, list) { in cifs_close_deferred_file_under_dentry()
848 _cifsFileInfo_put(tmp_list->cfile, true, false); in cifs_close_deferred_file_under_dentry()
849 list_del(&tmp_list->list); in cifs_close_deferred_file_under_dentry()
850 kfree(tmp_list); in cifs_close_deferred_file_under_dentry()