From 6bf3937fcfd57029d4ac953937d5c3a5f21de5bb Mon Sep 17 00:00:00 2001 From: Yang Xu Date: Tue, 5 Dec 2023 01:30:17 -0500 Subject: swapon.2: Adjust decreased value under CONFIG_PTE_MARKER Since linux 5.19[1], MAX_SWAPFILES will be futher decreased 1 if kernel built with CONFIG_PTE_MARKER. Link: [1] Signed-off-by: Yang Xu Signed-off-by: Alejandro Colomar --- man2/swapon.2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/man2/swapon.2 b/man2/swapon.2 index f80314389..a3707ac65 100644 --- a/man2/swapon.2 +++ b/man2/swapon.2 @@ -181,6 +181,10 @@ Since Linux 5.14, the limit is further decreased by 4 if the kernel is built with the .B CONFIG_DEVICE_PRIVATE option. +Since Linux 5.19, the limit is further decreased by 1 +if the kernel is built with the +.B CONFIG_PTE_MARKER +option. .P Discard of swap pages was introduced in Linux 2.6.29, then made conditional -- cgit v1.2.3