From patchwork Wed Dec 11 20:42:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11286317 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C52DF112B for ; Wed, 11 Dec 2019 20:46:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A4092222C4 for ; Wed, 11 Dec 2019 20:46:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726847AbfLKUqA (ORCPT ); Wed, 11 Dec 2019 15:46:00 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:54949 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726824AbfLKUqA (ORCPT ); Wed, 11 Dec 2019 15:46:00 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MtfVx-1hrzjx1qbH-00v5Yw; Wed, 11 Dec 2019 21:44:34 +0100 From: Arnd Bergmann To: Jens Axboe , "James E.J. Bottomley" , "Martin K. Petersen" , Alexander Viro , Jens Axboe , Hannes Reinecke , Damien Le Moal , Shaun Tancheff Cc: linux-kernel@vger.kernel.org, y2038@lists.linaro.org, Arnd Bergmann , stable@vger.kernel.org, Shaun Tancheff , Christoph Hellwig , linux-block@vger.kernel.org Subject: [PATCH 03/24] compat_ioctl: block: handle BLKREPORTZONE/BLKRESETZONE Date: Wed, 11 Dec 2019 21:42:37 +0100 Message-Id: <20191211204306.1207817-4-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20191211204306.1207817-1-arnd@arndb.de> References: <20191211204306.1207817-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K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+rfEAGLHbMJ8axdDWZoMEpMEmw5hvq LkO6gW96Cnj0eIdRUkFYDPOD4b6On+m6shG6eLibyp2LZ4NRSeHkIrdqCdaEC2Nr3B+Sz7sj3 u+m1hGTzY0O37G2+CxFw== Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org These were added to blkdev_ioctl() but not blkdev_compat_ioctl, so add them now. Cc: # v4.10+ Fixes: 3ed05a987e0f ("blk-zoned: implement ioctls") Signed-off-by: Arnd Bergmann Reviewed-by: Damien Le Moal --- block/compat_ioctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/compat_ioctl.c b/block/compat_ioctl.c index 6ca015f92766..830f91e05fe3 100644 --- a/block/compat_ioctl.c +++ b/block/compat_ioctl.c @@ -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: