Skip to content

contrib/check-config: fix MEMCG_SWAP checking#50553

Closed
chunzhennn wants to merge 2 commits intomoby:masterfrom
chunzhennn:master
Closed

contrib/check-config: fix MEMCG_SWAP checking#50553
chunzhennn wants to merge 2 commits intomoby:masterfrom
chunzhennn:master

Conversation

@chunzhennn
Copy link
Contributor

- What I did

CONFIG_MEMCG_SWAP has been deprecated since kernel v5.8-rc1 (commit 2d1c498) and removed since kernel v6.1-rc1 (commit e55b9f9).

Since kernel v5.8-rc1, swap tracking has been an integral part of memory control. CONFIG_MEMCG_SWAP becomes invisible to user and simply means CONFIG_MEMCG && CONFIG_SWAP.

This PR disables the check for kernel v5.8+, and fixes a tiny bug in kernel version range check.

Closes #49231.

- A picture of a cute animal (not mandatory but encouraged)
ฅ^•ﻌ•^ฅ

CONFIG_MEMCG_SWAP has been deprecated since kernel v5.8-rc1 (commit 2d1c498) and removed since kernel v6.1-rc1 (commit e55b9f9).

Since kernel v5.8-rc1, swap tracking has been an integral part of memory control. CONFIG_MEMCG_SWAP becomes invisible to user and simply means CONFIG_MEMCG && CONFIG_SWAP. 

Disable the check for kernel v5.8+.

Signed-off-by: 纯真 <38834411+chunzhennn@users.noreply.github.com>
Signed-off-by: 纯真 <38834411+chunzhennn@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check-config.sh script, CONFIG_MEMCG_SWAP is deprecated and have been removed!

1 participant