]> www.infradead.org Git - users/hch/block.git/commit
loop: also use the default block size from an underlying block device
authorChristoph Hellwig <hch@lst.de>
Sun, 2 Jun 2024 06:50:57 +0000 (08:50 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 16 Jun 2024 09:47:55 +0000 (11:47 +0200)
commitfb32e125806f500ad42a0a9e6efd7d5b6c94a5db
tree2e6d78a54e8e7071e347f59cde2123ff10cd7359
parentc8a015b6ad1ced7f84fcf42b34e5f1fa4ef39c39
loop: also use the default block size from an underlying block device

Fix the code in loop_reconfigure_limits to pick a default block size for
O_DIRECT file descriptors to also work when the loop device sits on top
of a block device and not just on a regular file on a block device based
file system.

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