Skip to content

Commit 673bdf8

Browse files
arndbaxboe
authored andcommitted
compat_ioctl: block: handle BLKREPORTZONE/BLKRESETZONE
These were added to blkdev_ioctl() but not blkdev_compat_ioctl, so add them now. Cc: <[email protected]> # v4.10+ Fixes: 3ed05a9 ("blk-zoned: implement ioctls") Reviewed-by: Damien Le Moal <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 257bf41 commit 673bdf8

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
@@ -354,6 +354,8 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
354354
* but we call blkdev_ioctl, which gets the lock for us
355355
*/
356356
case BLKRRPART:
357+
case BLKREPORTZONE:
358+
case BLKRESETZONE:
357359
return blkdev_ioctl(bdev, mode, cmd,
358360
(unsigned long)compat_ptr(arg));
359361
case BLKBSZSET_32:

0 commit comments

Comments
 (0)