UPSTREAM: loop: Add LOOP_SET_BLOCK_SIZE in compat ioctl
authorEvan Green <evgreen@chromium.org>
Mon, 2 Jul 2018 23:03:46 +0000 (16:03 -0700)
committerMichael Benedict <michaelbt@live.com>
Sat, 5 Oct 2019 02:25:02 +0000 (12:25 +1000)
commitb8e37df7375fb77dd6119478c1f3820392c55273
treeeb48698e9fc4ba12d34d5afaa7eaaa85a73185f2
parentf48cbb937d5ae511593f4196ecf6fde82b393d38
UPSTREAM: loop: Add LOOP_SET_BLOCK_SIZE in compat ioctl

This change adds LOOP_SET_BLOCK_SIZE as one of the supported ioctls
in lo_compat_ioctl. It only takes an unsigned long argument, and
in practice a 32-bit value works fine.

Bug: 117823094
Change-Id: I0061a082eb2632c47b7d66f35f2c909d33ff1653
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 9fea4b395260175de4016b42982f45a3e6e03d0b)
Signed-off-by: Martijn Coenen <maco@android.com>
drivers/block/loop.c