android_kernel_google_msm/drivers/base
Rafael Aquini 29af476bb5 mm: export NR_SHMEM via sysinfo(2) / si_meminfo() interfaces
Historically, we exported shared pages to userspace via sysinfo(2)
sharedram and /proc/meminfo's "MemShared" fields.  With the advent of
tmpfs, from kernel v2.4 onward, that old way for accounting shared mem
was deemed inaccurate and we started to export a hard-coded 0 for
sysinfo.sharedram.  Later on, during the 2.6 timeframe, "MemShared" got
re-introduced to /proc/meminfo re-branded as "Shmem", but we're still
reporting sysinfo.sharedmem as that old hard-coded zero, which makes the
"shared memory" report inconsistent across interfaces.

This patch leverages the addition of explicit accounting for pages used
by shmem/tmpfs -- "4b02108 mm: oom analysis: add shmem vmstat" -- in
order to make the users of sysinfo(2) and si_meminfo*() friends aware of
that vmstat entry and make them report it consistently across the
interfaces, as well to make sysinfo(2) returned data consistent with our
current API documentation states.

Change-Id: I51474973cc267ee368352e96e7229e0101f38aca
Signed-off-by: Rafael Aquini <aquini@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-12-01 19:08:36 +01:00
..
power wakeup: disable msm_hsic_host wakelock knob per default 2019-02-27 16:21:42 +01:00
regmap
attribute_container.c
base.h
bus.c
class.c
core.c driver-core: Use kobj_to_dev instead of re-implementing it 2017-12-28 12:56:47 +03:00
cpu.c
dd.c
devres.c driver core: devres: introduce devres_for_each_res 2017-12-28 12:57:11 +03:00
devtmpfs.c new helper: done_path_create() 2018-12-07 22:28:48 +04:00
dma-buf.c
dma-coherent.c
dma-contiguous.c mm: Fix incorrect type conversion for size during dma allocation 2018-02-16 20:15:05 -07:00
dma-mapping.c
driver.c
firmware.c
firmware_class.c firmware_class: make firmware caching configurable 2017-12-28 12:57:38 +03:00
genlock.c
hypervisor.c
init.c
isa.c
Kconfig firmware_class: make firmware caching configurable 2017-12-28 12:57:38 +03:00
Makefile
map.c
memory.c
module.c
node.c mm: export NR_SHMEM via sysinfo(2) / si_meminfo() interfaces 2020-12-01 19:08:36 +01:00
platform.c
soc.c
sw_sync.c
sync.c
sys.c
syscore.c PM: wakeup_reason: correctly deduce wakeup interrupts 2017-10-15 17:05:07 +03:00
topology.c
transport_class.c