android_kernel_oneplus_msm8998/drivers
Sergey Senozhatsky bece429b72 BACKPORT: zsmalloc: require GFP in zs_malloc()
Pass GFP flags to zs_malloc() instead of using a fixed mask supplied to
zs_create_pool(), so we can be more flexible, but, more importantly, we
need this to switch zram to per-cpu compression streams -- zram will try
to allocate handle with preemption disabled in a fast path and switch to
a slow path (using different gfp mask) if the fast one has failed.

Apart from that, this also align zs_malloc() interface with zspool/zbud.

[sergey.senozhatsky@gmail.com: pass GFP flags to zs_malloc() instead of using a fixed mask]
  Link: http://lkml.kernel.org/r/20160429150942.GA637@swordfish
Link: http://lkml.kernel.org/r/20160429150942.GA637@swordfish
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

(cherry picked from commit d0d8da2dc49dfdfe1d788eaf4d55eb5d4964d926)
Signed-off-by: Peter Kalauskas <peskal@google.com>
Bug: 112488418
Change-Id: I31276c9351be21a4ed588681b332e98142b76526
2018-08-23 12:00:15 -07:00
..
accessibility
acpi ACPI / PM: save NVS memory for ASUS 1025C laptop 2018-08-22 07:48:37 +02:00
amba ARM: amba: Don't read past the end of sysfs "driver_override" buffer 2018-05-02 07:53:42 -07:00
android UPSTREAM: binder: replace "%p" with "%pK" 2018-07-17 12:48:06 +02:00
ata libata: Fix command retry decision 2018-08-06 16:24:36 +02:00
atm atm: zatm: Fix potential Spectre v1 2018-07-22 14:25:52 +02:00
auxdisplay
base This is the 4.4.148 stable release 2018-08-15 18:20:41 +02:00
bcma
block BACKPORT: zsmalloc: require GFP in zs_malloc() 2018-08-23 12:00:15 -07:00
bluetooth Bluetooth: btusb: Add a new Realtek 8723DE ID 2ff8:b011 2018-08-06 16:24:32 +02:00
bus bus: brcmstb_gisb: correct support for 64-bit address output 2018-04-13 19:50:05 +02:00
cdrom cdrom: do not call check_disk_change() inside cdrom_open() 2018-05-30 07:49:13 +02:00
char tpm: fix race condition in tpm_common_write() 2018-08-15 17:42:04 +02:00
clk clk: tegra: Fix PLL_U post divider and initial rate on Tegra30 2018-07-25 10:18:32 +02:00
clocksource This is the 4.4.134 stable release 2018-05-30 13:25:24 +02:00
connector
cpufreq ANDROID: Fix massive cpufreq_times memory leaks 2018-07-18 13:21:38 +00:00
cpuidle This is the 4.4.139 stable release 2018-07-03 18:23:34 +02:00
crypto crypto: padlock-aes - Fix Nano workaround data corruption 2018-08-06 16:24:42 +02:00
dca
devfreq PM / devfreq: Propagate error from devfreq_add_device() 2018-02-22 15:44:58 +01:00
dio
dma dmaengine: pxa_dma: remove duplicate const qualifier 2018-08-06 16:24:40 +02:00
dma-buf
edac EDAC, mv64x60: Fix an error handling path 2018-04-13 19:50:23 +02:00
eisa
extcon
firewire firewire-ohci: work around oversized DMA reads on JMicron controllers 2018-05-30 07:48:52 +02:00
firmware This is the 4.4.134 stable release 2018-05-30 13:25:24 +02:00
fmc
fpga
gpio gpio: No NULL owner 2018-06-16 09:54:26 +02:00
gpu This is the 4.4.146 stable release 2018-08-06 19:12:19 +02:00
hid This is the 4.4.146 stable release 2018-08-06 19:12:19 +02:00
hsi HSI: ssi_protocol: double free in ssip_pn_xmit() 2018-03-24 10:58:42 +01:00
hv Drivers: hv: vmbus: fix build warning 2018-02-25 11:03:46 +01:00
hwmon hwmon: (pmbus/adm1275) Accept negative page register values 2018-05-30 07:49:13 +02:00
hwspinlock
hwtracing hwtracing: stm: fix build error on some arches 2018-06-06 16:46:23 +02:00
i2c i2c: ismt: fix wrong device address when unmap the data buffer 2018-08-17 20:56:44 +02:00
ide cdrom: do not call check_disk_change() inside cdrom_open() 2018-05-30 07:49:13 +02:00
idle idle: i7300: add PCI dependency 2018-02-25 11:03:51 +01:00
iio iio:buffer: make length types match kfifo types 2018-07-03 11:21:30 +02:00
infiniband IB/ocrdma: fix out of bounds access to local buffer 2018-08-15 17:42:06 +02:00
input This is the 4.4.146 stable release 2018-08-06 19:12:19 +02:00
iommu x86/cpufeature: Remove unused and seldomly used cpu_has_xx macros 2018-06-16 09:54:24 +02:00
ipack
irqchip This is the 4.4.134 stable release 2018-05-30 13:25:24 +02:00
isdn isdn: Disable IIOCDBGVAR 2018-08-22 07:48:38 +02:00
leds leds: pca955x: Correct I2C Functionality 2018-04-13 19:50:09 +02:00
lguest
lightnvm
macintosh
mailbox
mcb
md This is the 4.4.146 stable release 2018-08-06 19:12:19 +02:00
media media: si470x: fix __be16 annotations 2018-08-06 16:24:39 +02:00
memory memory: tegra: Apply interrupts mask per SoC 2018-08-06 16:24:38 +02:00
memstick
message scsi: mptfusion: Add bounds check in mptctl_hp_targetinfo() 2018-05-30 07:48:58 +02:00
mfd mfd: cros_ec: Fail early if we cannot identify the EC 2018-08-06 16:24:32 +02:00
misc This is the 4.4.141 stable release 2018-07-17 12:15:52 +02:00
mmc This is the 4.4.134 stable release 2018-05-30 13:25:24 +02:00
mtd This is the 4.4.146 stable release 2018-08-06 19:12:19 +02:00
net This is the 4.4.148 stable release 2018-08-15 18:20:41 +02:00
nfc This is the 4.4.123 stable release 2018-03-22 09:57:28 +01:00
ntb ntb_transport: Fix bug with max_mw_size parameter 2018-05-30 07:48:55 +02:00
nubus
nvdimm linvdimm, pmem: Preserve read-only setting for pmem devices 2018-07-03 11:21:31 +02:00
nvme nvme-pci: initialize queue memory before interrupts 2018-07-11 16:03:47 +02:00
nvmem
of This is the 4.4.139 stable release 2018-07-03 18:23:34 +02:00
oprofile
parisc parisc/pci: Switch LBA PCI bus from Hard Fail to Soft Fail mode 2018-05-30 07:49:10 +02:00
parport parport_pc: Add support for WCH CH382L PCI-E single parallel port card. 2018-04-08 11:52:00 +02:00
pci ACPI / PCI: Bail early in acpi_pci_add_bus() if there is no ACPI handle 2018-08-09 12:19:28 +02:00
pcmcia
perf This is the 4.4.123 stable release 2018-03-22 09:57:28 +01:00
phy phy: work around 'phys' references to usb-nop-xceiv devices 2018-01-23 19:50:16 +01:00
pinctrl pinctrl: at91-pio4: add missing of_node_put 2018-08-06 16:24:34 +02:00
platform goldfish: pipe: ANDROID: address must be written as __pa(x), not x 2018-06-05 09:42:36 -07:00
pnp
power This is the 4.4.124 stable release 2018-03-25 10:51:55 +02:00
powercap PowerCap: Fix an error code in powercap_register_zone() 2018-04-13 19:50:05 +02:00
pps
ps3
ptp ptp: fix missing break in switch 2018-07-25 10:18:17 +02:00
pwm pwm: tegra: Increase precision in PWM rate calculation 2018-03-22 09:23:27 +01:00
rapidio
ras
regulator regulator: pfuze100: add .is_enable() for pfuze100_swb_regulator_ops 2018-08-06 16:24:35 +02:00
remoteproc
reset
rpmsg
rtc This is the 4.4.146 stable release 2018-08-06 19:12:19 +02:00
s390 scsi: zfcp: fix missing REC trigger trace on enqueue without ERP thread 2018-07-03 11:21:31 +02:00
sbus
scsi This is the 4.4.148 stable release 2018-08-15 18:20:41 +02:00
sfi
sh
sn
soc
spi spi: Fix scatterlist elements size in spi_map_buf 2018-07-03 11:21:35 +02:00
spmi
ssb ssb: mark ssb_bus_register as __maybe_unused 2018-02-25 11:03:44 +01:00
staging This is the 4.4.140 stable release 2018-07-11 16:24:21 +02:00
target tcm_fileio: Prevent information leak for short reads 2018-03-24 10:58:45 +01:00
tc
tee BACKPORT: tee: shm: Potential NULL dereference calling tee_shm_register() 2018-02-21 15:40:49 +00:00
thermal thermal: exynos: fix setting rising_threshold for Exynos5433 2018-08-06 16:24:37 +02:00
thunderbolt thunderbolt: Resume control channel after hibernation image is created 2018-04-24 09:32:07 +02:00
tty This is the 4.4.151 stable release 2018-08-22 08:08:40 +02:00
uio
usb This is the 4.4.151 stable release 2018-08-22 08:08:40 +02:00
uwb
vfio vfio/pci: Virtualize Maximum Read Request Size 2018-04-24 09:32:09 +02:00
vhost vhost_net: validate sock before trying to put its fd 2018-07-22 14:25:53 +02:00
video This is the 4.4.139 stable release 2018-07-03 18:23:34 +02:00
virt
virtio virtio_balloon: fix another race between migration and ballooning 2018-08-06 16:24:42 +02:00
vlynq
vme
w1 This is the 4.4.139 stable release 2018-07-03 18:23:34 +02:00
watchdog watchdog: f71808e_wdt: Fix magic close handling 2018-05-30 07:49:03 +02:00
xen xen: Remove unnecessary BUG_ON from __unbind_from_irq() 2018-07-03 11:21:34 +02:00
zorro zorro: Set up z->dev.dma_mask for the DMA API 2018-05-30 07:49:11 +02:00
Kconfig
Makefile This is the 4.4.118 stable release 2018-02-26 09:24:57 +01:00