summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Xu <xuyang2018.jy@fujitsu.com>2023-12-05 01:30:16 -0500
committerAlejandro Colomar <alx@kernel.org>2023-12-17 13:35:02 +0100
commit26f3ec74e66dc4e05303826193ad71ad81298dfc (patch)
treeae00ddedb23cf52b64f3d2619bca68aa3997b075
parent239c4bdd83bb09293248b93a3a218efa2d4cf017 (diff)
swapon.2: Adjust decreased value under CONFIG_MIGRATION
Since Linux 5.19[1], the limit is decreased by 3 instead of 2. Link: [1] <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/swap.h?id=6c287605f> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man2/swapon.23
1 files changed, 2 insertions, 1 deletions
diff --git a/man2/swapon.2 b/man2/swapon.2
index c0e61cbc6..f80314389 100644
--- a/man2/swapon.2
+++ b/man2/swapon.2
@@ -164,7 +164,8 @@ Before Linux 2.4.10,
.B MAX_SWAPFILES
has the value 8;
since Linux 2.4.10, it has the value 32.
-Since Linux 2.6.18, the limit is decreased by 2 (thus: 30)
+Since Linux 2.6.18, the limit is decreased by 2.
+Since Linux 5.19, the limit is decreased by 3 (thus: 29)
if the kernel is built with the
.B CONFIG_MIGRATION
option