compat_ioctl: block: handle add zone open, close and finish ioctl
authorArnd Bergmann <arnd@arndb.de>
Fri, 29 Nov 2019 10:28:22 +0000 (11:28 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 21 Dec 2019 14:26:41 +0000 (07:26 -0700)
These were added to blkdev_ioctl() in linux-5.5 but not
blkdev_compat_ioctl, so add them now.

Fixes: e876df1fe0ad ("block: add zone open, close and finish ioctl support")
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>
block/compat_ioctl.c

index f5c1140b8624b0ee82f41b3a7fc9ee697729d337..5b13e344229c7d9caec7498eca1f4865ac81cb74 100644 (file)
@@ -356,6 +356,9 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
        case BLKRRPART:
        case BLKREPORTZONE:
        case BLKRESETZONE:
+       case BLKOPENZONE:
+       case BLKCLOSEZONE:
+       case BLKFINISHZONE:
        case BLKGETZONESZ:
        case BLKGETNRZONES:
                return blkdev_ioctl(bdev, mode, cmd,