Files
twx-linux/drivers/block
Ben Hutchings 9bc1f1791d Revert "loop: Remove sector_t truncation checks"
This reverts commit f92a3b0d00, which
was commit 083a6a5078 upstream.  In 4.19
there is still an option to use 32-bit sector_t on 32-bit
architectures, so we need to keep checking for truncation.

Since loop_set_status() was refactored by subsequent patches, this
reintroduces its truncation check in loop_set_status_from_info()
instead.

I tested that the loop ioctl operations have the expected behaviour on
x86_64, x86_32 with CONFIG_LBDAF=y, and (the special case) x86_32 with
CONFIG_LBDAF=n.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-05-02 16:17:14 +02:00
..
2023-11-08 11:22:21 +01:00
2023-11-08 11:22:21 +01:00