android_kernel_oneplus_msm8998/include
Linus Torvalds 13fbdf9d9a mm: get rid of vmacache_flush_all() entirely
commit 7a9cdebdcc17e426fb5287e4a82db1dfe86339b2 upstream.

Jann Horn points out that the vmacache_flush_all() function is not only
potentially expensive, it's buggy too.  It also happens to be entirely
unnecessary, because the sequence number overflow case can be avoided by
simply making the sequence number be 64-bit.  That doesn't even grow the
data structures in question, because the other adjacent fields are
already 64-bit.

So simplify the whole thing by just making the sequence number overflow
case go away entirely, which gets rid of all the complications and makes
the code faster too.  Win-win.

[ Oleg Nesterov points out that the VMACACHE_FULL_FLUSHES statistics
  also just goes away entirely with this ]

Change-Id: Ib485c9f33638e844f2378a1ec376e64200d30fd2
Reported-by: Jann Horn <jannh@google.com>
Suggested-by: Will Deacon <will.deacon@arm.com>
Acked-by: Davidlohr Bueso <dave@stgolabs.net>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 84580567f1f856d2c7a610273315852e345bc3ac
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2019-02-08 01:55:58 -08:00
..
acpi
asm-generic Merge android-4.4.150 (5541782) into msm-4.4 2018-08-28 16:40:54 +05:30
clocksource
crypto Merge android-4.4.150 (5541782) into msm-4.4 2018-08-28 16:40:54 +05:30
drm Merge android-4.4.146 (13962260) into msm-4.4 2018-08-07 15:36:56 +05:30
dt-bindings
keys
kvm
linux mm: get rid of vmacache_flush_all() entirely 2019-02-08 01:55:58 -08:00
math-emu
media msm: camera: Framedrop notification 2018-04-09 14:09:04 +05:30
memory
misc
net wcnss: Fix buffer overflow in wcnss_prealloc_get 2018-10-03 01:55:28 -07:00
pcmcia
ras
rdma IB/core: Make testing MR flags for writability a static inline function 2018-08-15 17:42:06 +02:00
rxrpc
scsi
soc soc: qcom: scm: Add a noretry variant for scm_call2 2018-11-28 22:39:41 -08:00
sound q6asm: retry asm_open_read and asm_open_loopback when session id conflict 2018-08-14 19:49:31 -07:00
target
trace Merge android-4.4.135 (c9d74f2) into msm-4.4 2018-06-27 14:42:55 +05:30
uapi msm: camera: isp: Handle frame drop due to delay 2018-12-13 06:11:21 -08:00
video drm/sde: bridge chip error and smmu fault handling for recovery 2018-07-19 10:08:28 +05:30
xen
Kbuild