Commit fda54864 authored by Charan Teja Reddy's avatar Charan Teja Reddy
Browse files

lmkd: input valid zone's file cache stats to file_cache_to_adj()

Having both highmem and normal zone in the system, file pages are
preffered to go to highmem and then to normal zone. But in the
file_cache_to_adj() calculations, we first input the normal zone stats
and then fall back to highmem zone. This can cause memory headroom
problem. Rely on the pgskip_(dma|normal|highmem|movable) stats to
decide if to consider particular zone file cache info. If a particular
zone is skipped, then memory pressure is not from allocation request of
that zone thus the file cache info of that zone can be skipped.

CRs-Fixed: 2614374
Change-Id: I2c1e83df66ba9ae20a6c011f83212651635ef01b
parent 62d88a83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment