Commit 8e41c366 authored by Liu Shixin's avatar Liu Shixin
Browse files

mm: swap_slots: add per-type slot cache

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


CVE: NA

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

Since we support per-memcg swapfile control, we need per-type slot
cache to optimize performance. To reduce memory waste, allocate per-type
slot cache when enable feature or online the corresponding swap device.

Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
parent 682fc25d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment