mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Revert "mm: vmscan: support equal reclaim for anon and file pages"
This reverts commit 1839defde452c723aeeaa4a747d0f6eff475f179. Signed-off-by: Juhyung Park <qkrwngud825@gmail.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
de57537c63
commit
b42539afd9
@ -693,15 +693,6 @@ config MAX_STACK_SIZE_MB
|
||||
|
||||
A sane initial value is 80 MB.
|
||||
|
||||
config BALANCE_ANON_FILE_RECLAIM
|
||||
bool "During reclaim treat anon and file backed pages equally"
|
||||
depends on SWAP
|
||||
help
|
||||
When performing memory reclaim treat anonymous and file backed pages
|
||||
equally.
|
||||
Swapping anonymous pages out to memory can be efficient enough to justify
|
||||
treating anonymous and file backed pages equally.
|
||||
|
||||
# For architectures that support deferred memory initialisation
|
||||
config ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT
|
||||
bool
|
||||
|
@ -2457,8 +2457,7 @@ static void get_scan_count(struct lruvec *lruvec, struct mem_cgroup *memcg,
|
||||
* lruvec even if it has plenty of old anonymous pages unless the
|
||||
* system is under heavy pressure.
|
||||
*/
|
||||
if (!IS_ENABLED(CONFIG_BALANCE_ANON_FILE_RECLAIM) &&
|
||||
!inactive_list_is_low(lruvec, true, sc, false) &&
|
||||
if (!inactive_list_is_low(lruvec, true, sc, false) &&
|
||||
lruvec_lru_size(lruvec, LRU_INACTIVE_FILE, sc->reclaim_idx) >> sc->priority) {
|
||||
scan_balance = SCAN_FILE;
|
||||
goto out;
|
||||
|
Loading…
x
Reference in New Issue
Block a user