diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2024-04-30 00:40:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-02 17:17:14 +0300 |
commit | 9bc1f1791de3cb5e3073bd8c5811d0d02b7dde31 (patch) | |
tree | 97faa782fba6bcc657b19cd596fc650fa3790643 /lib/sbitmap.c | |
parent | 21bfca822cfc1e71796124e93b46e0d9fa584401 (diff) | |
download | linux-9bc1f1791de3cb5e3073bd8c5811d0d02b7dde31.tar.xz |
Revert "loop: Remove sector_t truncation checks"
This reverts commit f92a3b0d003b9f7eb1f452598966a08802183f47, which
was commit 083a6a50783ef54256eec3499e6575237e0e3d53 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>
Diffstat (limited to 'lib/sbitmap.c')
0 files changed, 0 insertions, 0 deletions