]> www.infradead.org Git - users/hch/block.git/commit
loop: fold loop_update_rotational into loop_reconfigure_limits
authorChristoph Hellwig <hch@lst.de>
Sun, 2 Jun 2024 06:54:07 +0000 (08:54 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 16 Jun 2024 09:47:55 +0000 (11:47 +0200)
commit78e5d5258ab2a2063884f05dacc5e72d753a1b54
tree0664683b446706364147df1fd6a8f6e532dcf36a
parentfb32e125806f500ad42a0a9e6efd7d5b6c94a5db
loop: fold loop_update_rotational into loop_reconfigure_limits

This prepares for moving the rotational flag into the queue_limits and
also fixes it for the case where the loop device is backed by a block
device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
drivers/block/loop.c