block: remove the bd_queue field from struct block_device
Just use bd_disk->queue instead. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Цей коміт міститься в:

зафіксовано
Jens Axboe

джерело
6b7b181b67
коміт
e556f6ba10
@@ -2929,7 +2929,7 @@ static int claim_swapfile(struct swap_info_struct *p, struct inode *inode)
|
||||
* write only restriction. Hence zoned block devices are not
|
||||
* suitable for swapping. Disallow them here.
|
||||
*/
|
||||
if (blk_queue_is_zoned(p->bdev->bd_queue))
|
||||
if (blk_queue_is_zoned(p->bdev->bd_disk->queue))
|
||||
return -EINVAL;
|
||||
p->flags |= SWP_BLKDEV;
|
||||
} else if (S_ISREG(inode->i_mode)) {
|
||||
|
Посилання в новій задачі
Заблокувати користувача