diff options
| author | Lorenzo Stoakes <[email protected]> | 2023-08-27 12:08:48 +0100 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-10-04 10:32:19 -0700 |
| commit | 80e4a765a770c491e081463c38be927a876e2ce8 (patch) | |
| tree | df1f9f9d1ba4e688d23d4fe3c2021d531066679b /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | b72b3c9c34c825c81d205241c5f822fc7835923f (diff) | |
mm: refactor si_mem_available()
si_mem_available() needlessly places LRU statistics into an array before
retrieving only two of them, simply access those directly.
In addition, refactor the code so that the blocks of code which calculate
the page cache and reclaimable components each resemble one another to
clearly indicate we cap both against wmark_low in the same fashion.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Lorenzo Stoakes <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Kefeng Wang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions