summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2014-07-02 12:46:23 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-31 12:53:48 -0700
commit668b7a05f2fa59c60ca9820269e3d8dfaa218693 (patch)
tree05be6bf7e240733c98661283eef020077395f3a2 /block
parent18bfdaeaa42e36d49bf82443e890db9448d4bebf (diff)
downloadlinux-3.10-668b7a05f2fa59c60ca9820269e3d8dfaa218693.tar.gz
linux-3.10-668b7a05f2fa59c60ca9820269e3d8dfaa218693.tar.bz2
linux-3.10-668b7a05f2fa59c60ca9820269e3d8dfaa218693.zip
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 <mpatocka@redhat.com> Acked-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <axboe@fb.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
-rw-r--r--block/compat_ioctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/compat_ioctl.c b/block/compat_ioctl.c
index 7c668c8a6f9..21ad6869a5c 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