android_kernel_oneplus_msm8998/drivers/block
Alessio Balsini 896bb98754 loop: Add LOOP_SET_DIRECT_IO to compat ioctl
[ Upstream commit fdbe4eeeb1aac219b14f10c0ed31ae5d1123e9b8 ]

Enabling Direct I/O with loop devices helps reducing memory usage by
avoiding double caching.  32 bit applications running on 64 bits systems
are currently not able to request direct I/O because is missing from the
lo_compat_ioctl.

This patch fixes the compatibility issue mentioned above by exporting
LOOP_SET_DIRECT_IO as additional lo_compat_ioctl() entry.
The input argument for this ioctl is a single long converted to a 1-bit
boolean, so compatibility is preserved.

Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Alessio Balsini <balsini@android.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-29 09:13:21 +01:00
..
aoe
drbd drbd: skip spurious timeout (ping-timeo) when failing promote 2019-02-20 10:13:11 +01:00
mtip32xx Revert "mtip32xx: use runtime tag to initialize command header" 2018-04-08 11:52:02 +02:00
paride cdrom: do not call check_disk_change() inside cdrom_open() 2018-05-30 07:49:13 +02:00
rsxx
xen-blkback xen-blkback: don't leak stack data via response ring 2017-11-21 09:21:17 +01:00
zram zram: close udev startup race condition as default groups 2018-11-27 16:08:01 +01:00
amiflop.c
ataflop.c ataflop: fix error handling during setup 2018-11-21 09:27:31 +01:00
brd.c brd: Fix discard request processing 2016-04-12 09:08:53 -07:00
cciss.c
cciss.h
cciss_cmd.h
cciss_scsi.c
cciss_scsi.h
cpqarray.c
cpqarray.h
cryptoloop.c
DAC960.c
DAC960.h
floppy.c floppy: fix usercopy direction 2019-09-21 07:12:53 +02:00
hd.c
ida_cmd.h
ida_ioctl.h
Kconfig
loop.c loop: Add LOOP_SET_DIRECT_IO to compat ioctl 2019-10-29 09:13:21 +01:00
loop.h Revert "block/loop: Use global lock for ioctl() operation." 2019-05-16 19:44:52 +02:00
Makefile
mg_disk.c
nbd.c nbd: ratelimit error msgs after socket close 2016-05-11 11:21:10 +02:00
null_blk.c
osdblk.c
pktcdvd.c pktcdvd: Fix pkt_setup_dev() error path 2018-02-16 20:09:47 +01:00
ps3disk.c
ps3vram.c
rbd.c rbd: set max_segments to USHRT_MAX 2018-01-17 09:35:30 +01:00
rbd_types.h
skd_main.c skd: Submit requests to firmware before triggering the doorbell 2017-09-27 11:00:14 +02:00
skd_s1120.h
smart1,2.h
sunvdc.c sunvdc: Do not spin in an infinite loop when vio_ldc_send() returns EAGAIN 2019-02-20 10:13:06 +01:00
swim.c swim: fix cleanup on setup error 2018-11-21 09:27:31 +01:00
swim3.c block/swim3: Fix -EBUSY error when re-opening device after unmount 2019-02-20 10:13:13 +01:00
swim_asm.S
sx8.c
umem.c
umem.h
virtio_blk.c virtio_blk: fix panic in initialization error path 2017-08-11 09:08:58 -07:00
xen-blkfront.c
xsysace.c xsysace: Fix error handling in ace_setup 2019-05-16 19:45:02 +02:00
z2ram.c