Skip to content

Commit 21d3734

Browse files
arndbaxboe
authored andcommitted
compat_ioctl: block: handle BLKGETZONESZ/BLKGETNRZONES
These were added to blkdev_ioctl() in v4.20 but not blkdev_compat_ioctl, so add them now. Cc: <[email protected]> # v4.20+ Fixes: 72cd875 ("block: Introduce BLKGETZONESZ ioctl") Fixes: 65e4e3e ("block: Introduce BLKGETNRZONES ioctl") Reviewed-by: Damien Le Moal <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 673bdf8 commit 21d3734

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

block/compat_ioctl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
356356
case BLKRRPART:
357357
case BLKREPORTZONE:
358358
case BLKRESETZONE:
359+
case BLKGETZONESZ:
360+
case BLKGETNRZONES:
359361
return blkdev_ioctl(bdev, mode, cmd,
360362
(unsigned long)compat_ptr(arg));
361363
case BLKBSZSET_32:

0 commit comments

Comments
 (0)