diff options
author | 2023-06-30 17:22:02 +0800 | |
---|---|---|
committer | 2023-08-18 10:12:11 -0700 | |
commit | 8a144612eb8a31b94ecb2d340d07588ac115e819 (patch) | |
tree | c843fbf6cd2a0b8eb4ba19ea9f5af9c7c1a5ce21 /mm/truncate.c | |
parent | memcg: drop kmem.limit_in_bytes (diff) | |
download | wireguard-linux-8a144612eb8a31b94ecb2d340d07588ac115e819.tar.xz wireguard-linux-8a144612eb8a31b94ecb2d340d07588ac115e819.zip |
fs: drop_caches: draining pages before dropping caches
We expect a file page access after dropping caches should be a major
fault, but sometimes it's still a minor fault. That's because a file page
can't be dropped if it's in a per-cpu pagevec. Draining all pages from
per-cpu pagevec to lru list before trying to drop caches.
Link: https://lkml.kernel.org/r/20230630092203.16080-1-andrew.yang@mediatek.com
Signed-off-by: Andrew Yang <andrew.yang@mediatek.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/truncate.c')
0 files changed, 0 insertions, 0 deletions