summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEvan Green <evgreen@chromium.org>2018-07-03 02:03:46 +0300
committerJens Axboe <axboe@kernel.dk>2018-07-03 16:52:34 +0300
commit9fea4b395260175de4016b42982f45a3e6e03d0b (patch)
tree86b14931b2b87dc81674906c117409536a27c9e1 /drivers
parent64dafbc9530c10300acffc57fae3269d95fa8f93 (diff)
downloadlinux-9fea4b395260175de4016b42982f45a3e6e03d0b.tar.xz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/loop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 21e6d1b3b393..258355c5a93a 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -1612,6 +1612,7 @@ static int lo_compat_ioctl(struct block_device *bdev, fmode_t mode,
arg = (unsigned long) compat_ptr(arg);
case LOOP_SET_FD:
case LOOP_CHANGE_FD:
+ case LOOP_SET_BLOCK_SIZE:
err = lo_ioctl(bdev, mode, cmd, arg);
break;
default: