Re: [PATCH v2 1/2] swapon.2: Adjust decreased value under CONFIG_MIGRATION

Alejandro Colomar
2023-12-15T11:13:33Z

[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]

Hi Yang,

On Tue, Dec 05, 2023 at 01:30:16AM -0500, Yang Xu wrote:
> After kernel 5.19[1], the limit is decreased by 3.
>
> [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>

I've applied the patch, with some modifications:
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=5da8280ed6eefb3d70f86281579c4afae89230b1>

Cheers,
Alex

> ---
> man2/swapon.2 | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/man2/swapon.2 b/man2/swapon.2
> index c0e61cbc6..2bc477d18 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.0,
> +the limit is decreased by 3)
> if the kernel is built with the
> .B CONFIG_MIGRATION
> option
> --
> 2.27.0
>
>

--
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]