Lines Matching defs:bdev
130 struct block_device *bdev;
133 bdev = blkdev_get_by_dev(disk_devt(block->gdp), BLK_OPEN_READ, NULL,
135 if (IS_ERR(bdev)) {
138 PTR_ERR(bdev));
153 * 0 to 1. This is done by setting device->bdev (see
156 * is why the assignment to device->bdev is done AFTER
159 block->bdev = bdev;
169 struct block_device *bdev;
172 * Get the bdev pointer from the device structure and clear
173 * device->bdev to lower the offline open_count limit again.
175 bdev = block->bdev;
176 block->bdev = NULL;
178 mutex_lock(&bdev->bd_disk->open_mutex);
179 bdev_disk_changed(bdev->bd_disk, true);
180 mutex_unlock(&bdev->bd_disk->open_mutex);
183 blkdev_put(bdev, NULL);