Lines Matching refs:bd_disk
325 const struct block_device_operations *ops = bdev->bd_disk->fops; in bdev_read_page()
363 const struct block_device_operations *ops = bdev->bd_disk->fops; in bdev_write_page()
409 if (bdev->bd_disk && bdev->bd_disk->bdi) in bdev_free_inode()
410 bdi_put(bdev->bd_disk->bdi); in bdev_free_inode()
411 kfree(bdev->bd_disk); in bdev_free_inode()
503 bdev->bd_disk = disk; in bdev_alloc()
667 struct gendisk *disk = bdev->bd_disk; in blkdev_get_whole()
693 if (bdev->bd_disk->fops->release) in blkdev_put_whole()
694 bdev->bd_disk->fops->release(bdev->bd_disk, mode); in blkdev_put_whole()
699 struct gendisk *disk = part->bd_disk; in blkdev_get_part()
731 whole->bd_disk->open_partitions--; in blkdev_put_part()
756 if ((bdev->bd_disk->flags & GENHD_FL_HIDDEN)) { in blkdev_get_no_open()
807 disk = bdev->bd_disk; in blkdev_get_by_dev()
903 struct gendisk *disk = bdev->bd_disk; in blkdev_put()
1056 mutex_lock(&bdev->bd_disk->open_mutex); in sync_bdevs()
1070 mutex_unlock(&bdev->bd_disk->open_mutex); in sync_bdevs()