Lines Matching refs:disk
116 * READ/WRITE requests. It is set by the disk driver.
149 if (!q->disk)
151 q->disk->bdi->io_pages = max_sectors >> (PAGE_SHIFT - 9);
391 void disk_update_readahead(struct gendisk *disk)
393 struct request_queue *q = disk->queue;
399 disk->bdi->ra_pages =
401 disk->bdi->io_pages = queue_max_sectors(q) >> (PAGE_SHIFT - 9);
436 * incurring a performance penalty. For disk drives this is often the
456 * for disk drives. For RAID arrays it is usually the stripe width or
475 * for disk drives. For RAID arrays it is usually the stripe width or
483 if (!q->disk)
485 q->disk->bdi->ra_pages =
699 * @disk: MD/DM gendisk (top)
707 void disk_stack_limits(struct gendisk *disk, struct block_device *bdev,
710 struct request_queue *t = disk->queue;
715 disk->disk_name, bdev);
717 disk_update_readahead(disk);
891 static bool disk_has_partitions(struct gendisk *disk)
898 xa_for_each(&disk->part_tbl, idx, part) {
910 * disk_set_zoned - configure the zoned model for a disk
911 * @disk: the gendisk of the queue to configure
914 * Set the zoned model of @disk to @model.
920 * on the disk.
922 void disk_set_zoned(struct gendisk *disk, enum blk_zoned_model model)
924 struct request_queue *q = disk->queue;
945 disk_has_partitions(disk))
964 disk_clear_zone_settings(disk);