Skip to content

Commit

Permalink
compat_ioctl: block: handle BLKGETZONESZ/BLKGETNRZONES
Browse files Browse the repository at this point in the history
These were added to blkdev_ioctl() in v4.20 but not blkdev_compat_ioctl,
so add them now.

Cc: <stable@vger.kernel.org> # v4.20+
Fixes: 72cd875 ("block: Introduce BLKGETZONESZ ioctl")
Fixes: 65e4e3e ("block: Introduce BLKGETNRZONES ioctl")
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Arnd Bergmann authored and Jens Axboe committed Dec 21, 2019
1 parent 673bdf8 commit 21d3734
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 @@ -356,6 +356,8 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
case BLKRRPART:
case BLKREPORTZONE:
case BLKRESETZONE:
case BLKGETZONESZ:
case BLKGETNRZONES:
return blkdev_ioctl(bdev, mode, cmd,
(unsigned long)compat_ptr(arg));
case BLKBSZSET_32:
Expand Down

0 comments on commit 21d3734

Please sign in to comment.