Files
twx-linux/drivers
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-09-23 10:48:09 +02:00
2024-04-13 12:50:06 +02:00
2023-11-20 10:29:18 +01:00
2024-02-23 08:12:44 +01:00
2024-01-25 14:33:30 -08:00
2023-08-11 11:45:11 +02:00