Skip to content

Commit

Permalink
compat_ioctl: block: handle BLKREPORTZONE/BLKRESETZONE
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
arndb authored and axboe committed Dec 21, 2019
1 parent 257bf41 commit 673bdf8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions block/compat_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
* but we call blkdev_ioctl, which gets the lock for us
*/
case BLKRRPART:
case BLKREPORTZONE:
case BLKRESETZONE:
return blkdev_ioctl(bdev, mode, cmd,
(unsigned long)compat_ptr(arg));
case BLKBSZSET_32:
Expand Down

0 comments on commit 673bdf8

Please sign in to comment.