Files
linux-stable-mirror/include/linux
Damien Le Moal 2719bd1ee1 block: introduce blk_queue_rot()
To check if a request queue is for a rotational device, a double
negation is needed with the pattern "!blk_queue_nonrot(q)". Simplify
this with the introduction of the helper blk_queue_rot() which tests
if a requests queue limit has the BLK_FEAT_ROTATIONAL feature set.
All call sites of blk_queue_nonrot() are modified to use blk_queue_rot()
and blk_queue_nonrot() definition removed.

No functional changes.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Nitesh Shetty <nj.shetty@samsung.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2026-01-29 13:15:50 -07:00
..
2026-01-26 21:07:48 -07:00
2026-01-29 13:15:50 -07:00
2025-12-09 23:29:42 -08:00
2025-12-13 20:04:32 +12:00
2025-12-16 00:57:29 -05:00
2025-11-27 14:24:30 -08:00
2025-11-28 09:21:18 -07:00
2025-11-27 14:22:31 +01:00
2025-12-24 08:02:55 -05:00