From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755515AbaGBQq3 (ORCPT ); Wed, 2 Jul 2014 12:46:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50625 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751491AbaGBQq2 (ORCPT ); Wed, 2 Jul 2014 12:46:28 -0400 Date: Wed, 2 Jul 2014 12:46:23 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Jens Axboe , "Martin K. Petersen" cc: linux-kernel@vger.kernel.org Subject: [PATCH] block: provide compat ioctl for BLKZEROOUT Message-ID: User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch provides the compat BLKZEROOUT ioctl. The argument is a pointer to two uint64_t values, so there is no need to translate it. Signed-off-by: Mikulas Patocka Cc: stable@vger.kernel.org # 3.7+ --- block/compat_ioctl.c | 1 + 1 file changed, 1 insertion(+) Index: linux-3.16-rc3/block/compat_ioctl.c =================================================================== --- linux-3.16-rc3.orig/block/compat_ioctl.c 2014-07-02 18:19:02.000000000 +0200 +++ linux-3.16-rc3/block/compat_ioctl.c 2014-07-02 18:19:37.000000000 +0200 @@ -690,6 +690,7 @@ long compat_blkdev_ioctl(struct file *fi case BLKROSET: case BLKDISCARD: case BLKSECDISCARD: + case BLKZEROOUT: /* * the ones below are implemented in blkdev_locked_ioctl, * but we call blkdev_ioctl, which gets the lock for us