[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190806220524.251404-1-balsini@android.com>
Date: Tue, 6 Aug 2019 23:05:24 +0100
From: Alessio Balsini <balsini@...roid.com>
To: linux-block@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, axboe@...nel.dk, dvander@...il.com,
elsk@...gle.com, gregkh@...uxfoundation.org,
kernel-team@...roid.com
Subject: [PATCH] loop: Add LOOP_SET_DIRECT_IO in compat ioctl
Export LOOP_SET_DIRECT_IO as additional lo_compat_ioctl.
The input argument for this ioctl is a single long, in the end converted
to a 1-bit boolean. Compatibility is then preserved.
Cc: Jens Axboe <axboe@...nel.dk>
Signed-off-by: Alessio Balsini <balsini@...roid.com>
---
drivers/block/loop.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 3036883fc9f8..a7461f482467 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -1755,6 +1755,7 @@ static int lo_compat_ioctl(struct block_device *bdev, fmode_t mode,
case LOOP_SET_FD:
case LOOP_CHANGE_FD:
case LOOP_SET_BLOCK_SIZE:
+ case LOOP_SET_DIRECT_IO:
err = lo_ioctl(bdev, mode, cmd, arg);
break;
default:
--
2.22.0.770.g0f2c4a37fd-goog
Powered by blists - more mailing lists