From: Mikulas Patocka Date: Wed, 2 Jul 2014 16:46:23 +0000 (-0400) Subject: block: provide compat ioctl for BLKZEROOUT X-Git-Tag: firefly_0821_release~3679^2~1749 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=668b7a05f2fa59c60ca9820269e3d8dfaa218693;p=firefly-linux-kernel-4.4.55.git block: provide compat ioctl for BLKZEROOUT commit 3b3a1814d1703027f9867d0f5cbbfaf6c7482474 upstream. 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 Acked-by: Martin K. Petersen Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- diff --git a/block/compat_ioctl.c b/block/compat_ioctl.c index 7c668c8a6f95..21ad6869a5ce 100644 --- a/block/compat_ioctl.c +++ b/block/compat_ioctl.c @@ -689,6 +689,7 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg) 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