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)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Jul 2018 13:52:34 +0000 (07:52 -0600)
commit9fea4b395260175de4016b42982f45a3e6e03d0b
tree86b14931b2b87dc81674906c117409536a27c9e1
parent64dafbc9530c10300acffc57fae3269d95fa8f93
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.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c