Commit 04ec8364 authored by Chen Wandun's avatar Chen Wandun Committed by Yang Yingliang
Browse files

filemap: dont shrink_page_cache in add_to_page_cache

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4SK3S


CVE: NA

--------------------------------

The reason of disable shrink_page_cache in add_to_page_cache are:

1. Synchronous memory reclamation will affect performance.
2. add_to_page_cache will not increase the number of LRU size in
   HugeTLB situation, so shrink_page_cache will not be triggered.

Now, add_to_page_cache in mm/filemap.c and include/linux/pagemap.h
are same, don't delete add_to_page_cache in mm/filemap.c, just keep
interface for KABI.

Signed-off-by: default avatarChen Wandun <chenwandun@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 76569c77
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment