mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Linux 7.0: blk_queue_nonrot() renamed to blk_queue_rot()
It does exactly the same thing, just inverts the return. Detect its presence or absence and call the right one. Sponsored-by: TrueNAS Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <rob.norris@truenas.com> Closes #18216
This commit is contained in:
committed by
Brian Behlendorf
parent
7744f04962
commit
204de946eb
@@ -445,7 +445,11 @@ vdev_disk_open(vdev_t *v, uint64_t *psize, uint64_t *max_psize,
|
||||
v->vdev_has_securetrim = bdev_secure_discard_supported(bdev);
|
||||
|
||||
/* Inform the ZIO pipeline that we are non-rotational */
|
||||
#ifdef HAVE_BLK_QUEUE_ROT
|
||||
v->vdev_nonrot = !blk_queue_rot(bdev_get_queue(bdev));
|
||||
#else
|
||||
v->vdev_nonrot = blk_queue_nonrot(bdev_get_queue(bdev));
|
||||
#endif
|
||||
|
||||
/* Is backed by a block device. */
|
||||
v->vdev_is_blkdev = B_TRUE;
|
||||
|
||||
Reference in New Issue
Block a user