Lines Matching refs:disk
2185 struct gendisk *disk; in ioc_qos_write() local
2192 disk = blkcg_conf_get_disk(&input); in ioc_qos_write()
2193 if (IS_ERR(disk)) in ioc_qos_write()
2194 return PTR_ERR(disk); in ioc_qos_write()
2196 ioc = q_to_ioc(disk->queue); in ioc_qos_write()
2198 ret = blk_iocost_init(disk->queue); in ioc_qos_write()
2201 ioc = q_to_ioc(disk->queue); in ioc_qos_write()
2295 put_disk_and_module(disk); in ioc_qos_write()
2300 put_disk_and_module(disk); in ioc_qos_write()
2351 struct gendisk *disk; in ioc_cost_model_write() local
2358 disk = blkcg_conf_get_disk(&input); in ioc_cost_model_write()
2359 if (IS_ERR(disk)) in ioc_cost_model_write()
2360 return PTR_ERR(disk); in ioc_cost_model_write()
2362 ioc = q_to_ioc(disk->queue); in ioc_cost_model_write()
2364 ret = blk_iocost_init(disk->queue); in ioc_cost_model_write()
2367 ioc = q_to_ioc(disk->queue); in ioc_cost_model_write()
2420 put_disk_and_module(disk); in ioc_cost_model_write()
2426 put_disk_and_module(disk); in ioc_cost_model_write()