Lines Matching defs:old
476 int del_mtd_blktrans_dev(struct mtd_blktrans_dev *old)
481 if (old->disk_attributes)
482 sysfs_remove_group(&disk_to_dev(old->disk)->kobj,
483 old->disk_attributes);
486 del_gendisk(old->disk);
489 spin_lock_irqsave(&old->queue_lock, flags);
490 old->rq->queuedata = NULL;
491 spin_unlock_irqrestore(&old->queue_lock, flags);
494 blk_mq_freeze_queue(old->rq);
495 blk_mq_quiesce_queue(old->rq);
496 blk_mq_unquiesce_queue(old->rq);
497 blk_mq_unfreeze_queue(old->rq);
501 mutex_lock(&old->lock);
502 if (old->open) {
503 if (old->tr->release)
504 old->tr->release(old);
505 __put_mtd_device(old->mtd);
508 old->mtd = NULL;
510 mutex_unlock(&old->lock);
511 blktrans_dev_put(old);