public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: provide compat ioctl for BLKZEROOUT
@ 2014-07-02 16:46 Mikulas Patocka
  2014-07-13 13:24 ` Martin K. Petersen
  0 siblings, 1 reply; 3+ messages in thread
From: Mikulas Patocka @ 2014-07-02 16:46 UTC (permalink / raw)
  To: Jens Axboe, Martin K. Petersen; +Cc: linux-kernel

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>
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: provide compat ioctl for BLKZEROOUT
  2014-07-02 16:46 [PATCH] block: provide compat ioctl for BLKZEROOUT Mikulas Patocka
@ 2014-07-13 13:24 ` Martin K. Petersen
  2014-07-14 10:27   ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: Martin K. Petersen @ 2014-07-13 13:24 UTC (permalink / raw)
  To: Mikulas Patocka; +Cc: Jens Axboe, Martin K. Petersen, linux-kernel

>>>>> "Mikulas" == Mikulas Patocka <mpatocka@redhat.com> writes:

Mikulas> This patch provides the compat BLKZEROOUT ioctl. The argument
Mikulas> is a pointer to two uint64_t values, so there is no need to
Mikulas> translate it.

Acked-by: Martin K. Petersen <martin.petersen@oracle.com>

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: provide compat ioctl for BLKZEROOUT
  2014-07-13 13:24 ` Martin K. Petersen
@ 2014-07-14 10:27   ` Jens Axboe
  0 siblings, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2014-07-14 10:27 UTC (permalink / raw)
  To: Martin K. Petersen, Mikulas Patocka; +Cc: linux-kernel

On 2014-07-13 15:24, Martin K. Petersen wrote:
>>>>>> "Mikulas" == Mikulas Patocka <mpatocka@redhat.com> writes:
>
> Mikulas> This patch provides the compat BLKZEROOUT ioctl. The argument
> Mikulas> is a pointer to two uint64_t values, so there is no need to
> Mikulas> translate it.
>
> Acked-by: Martin K. Petersen <martin.petersen@oracle.com>

Applied, thanks Mikulas.


-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-14 10:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-02 16:46 [PATCH] block: provide compat ioctl for BLKZEROOUT Mikulas Patocka
2014-07-13 13:24 ` Martin K. Petersen
2014-07-14 10:27   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox