Lines Matching refs:ondemand

30 	info = object->ondemand;  in cachefiles_ondemand_fd_release()
177 !req->object->ondemand->ondemand_id) { in cachefiles_ondemand_copen()
184 info = req->object->ondemand; in cachefiles_ondemand_copen()
307 spin_lock(&object->ondemand->lock); in cachefiles_ondemand_get_fd()
308 if (object->ondemand->ondemand_id > 0) { in cachefiles_ondemand_get_fd()
309 spin_unlock(&object->ondemand->lock); in cachefiles_ondemand_get_fd()
320 object->ondemand->ondemand_id = object_id; in cachefiles_ondemand_get_fd()
321 spin_unlock(&object->ondemand->lock); in cachefiles_ondemand_get_fd()
336 spin_lock(&object->ondemand->lock); in cachefiles_ondemand_get_fd()
338 if (object->ondemand->ondemand_id <= 0) in cachefiles_ondemand_get_fd()
340 spin_unlock(&object->ondemand->lock); in cachefiles_ondemand_get_fd()
369 info = object->ondemand; in cachefiles_ondemand_select_req()
443 msg->object_id = req->object->ondemand->ondemand_id; in cachefiles_ondemand_daemon_read()
532 WARN_ON_ONCE(object->ondemand->ondemand_id == 0); in cachefiles_ondemand_send_req()
661 if (!object->ondemand) in cachefiles_ondemand_init_object()
688 if (!object->ondemand) in cachefiles_ondemand_clean_object()
694 if (!object->ondemand->ondemand_id) in cachefiles_ondemand_clean_object()
711 cancel_work_sync(&object->ondemand->ondemand_work); in cachefiles_ondemand_clean_object()
720 object->ondemand = kzalloc(sizeof(struct cachefiles_ondemand_info), in cachefiles_ondemand_init_obj_info()
722 if (!object->ondemand) in cachefiles_ondemand_init_obj_info()
725 object->ondemand->object = object; in cachefiles_ondemand_init_obj_info()
726 spin_lock_init(&object->ondemand->lock); in cachefiles_ondemand_init_obj_info()
727 INIT_WORK(&object->ondemand->ondemand_work, ondemand_object_worker); in cachefiles_ondemand_init_obj_info()
733 kfree(object->ondemand); in cachefiles_ondemand_deinit_obj_info()
734 object->ondemand = NULL; in cachefiles_ondemand_deinit_obj_info()