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)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:32:11 +0000 (17:32 +0800)
commit0b075c4d2153f1b62a3d03212bd83e85002bf130
tree9b80c337f7e17c02f348a30fc6317da658170f1d
parent552822bc070f9f7252dc3137014c7e09febc0865
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.

Mot-CRs-fixed: (CR)

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>
Reviewed-on: https://gerrit.mot.com/1427694
Tested-by: Jira Key
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
drivers/block/loop.c