public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] iman/man2/swapon.2: update priority section
@ 2025-10-17 12:31 Baoquan He
  2025-10-20  9:21 ` Barry Song
  2025-11-24 16:56 ` Alejandro Colomar
  0 siblings, 2 replies; 6+ messages in thread
From: Baoquan He @ 2025-10-17 12:31 UTC (permalink / raw)
  To: linux-man; +Cc: Baoquan He, chrisl, baohua, alx

This update the description about default priority value which is
changed in kernel.

Link: https://lore.kernel.org/all/20251011081624.224202-1-bhe@redhat.com/
Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: chrisl@kernel.org
Cc: baohua@kernel.org
Cc: alx@kernel.org
---
 man/man2/swapon.2 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/man/man2/swapon.2 b/man/man2/swapon.2
index df5e8d8c7ec6..20e213827733 100644
--- a/man/man2/swapon.2
+++ b/man/man2/swapon.2
@@ -60,9 +60,8 @@ These functions may be used only by a privileged process (one having the
 capability).
 .SS Priority
 Each swap area has a priority, either high or low.
-The default priority is low.
-Within the low-priority areas,
-newer areas are even lower priority than older areas.
+The default priority is the lowest,
+and all default areas share the same priority value, -1.
 .P
 All priorities set with
 .I swapflags
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] iman/man2/swapon.2: update priority section
  2025-10-17 12:31 [PATCH v2] iman/man2/swapon.2: update priority section Baoquan He
@ 2025-10-20  9:21 ` Barry Song
  2025-10-20 13:09   ` Baoquan He
  2025-11-24 16:56 ` Alejandro Colomar
  1 sibling, 1 reply; 6+ messages in thread
From: Barry Song @ 2025-10-20  9:21 UTC (permalink / raw)
  To: Baoquan He; +Cc: linux-man, chrisl, alx

On Mon, Oct 20, 2025 at 6:56 AM Baoquan He <bhe@redhat.com> wrote:
>
> This update the description about default priority value which is
> changed in kernel.

Thanks for sending this. Would it be possible to include a reference to
the related commit — for example, at least the commit subject? Also,
does the man page prefer using a link to the kernel patchset?

>
> Link: https://lore.kernel.org/all/20251011081624.224202-1-bhe@redhat.com/
> Signed-off-by: Baoquan He <bhe@redhat.com>
> Cc: chrisl@kernel.org
> Cc: baohua@kernel.org
> Cc: alx@kernel.org
> ---
>  man/man2/swapon.2 | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/man/man2/swapon.2 b/man/man2/swapon.2
> index df5e8d8c7ec6..20e213827733 100644
> --- a/man/man2/swapon.2
> +++ b/man/man2/swapon.2
> @@ -60,9 +60,8 @@ These functions may be used only by a privileged process (one having the
>  capability).
>  .SS Priority
>  Each swap area has a priority, either high or low.
> -The default priority is low.
> -Within the low-priority areas,
> -newer areas are even lower priority than older areas.
> +The default priority is the lowest,
> +and all default areas share the same priority value, -1.

Not sure what “default areas” means.
maybe just the below?
"
Areas that are not assigned a priority will receive the default priority of -1.
"

>  .P
>  All priorities set with
>  .I swapflags
> --
> 2.41.0
>

Thanks
Barry

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] iman/man2/swapon.2: update priority section
  2025-10-20  9:21 ` Barry Song
@ 2025-10-20 13:09   ` Baoquan He
  2025-10-21 16:58     ` Alejandro Colomar
  0 siblings, 1 reply; 6+ messages in thread
From: Baoquan He @ 2025-10-20 13:09 UTC (permalink / raw)
  To: Barry Song; +Cc: linux-man, chrisl, alx

On 10/20/25 at 05:21pm, Barry Song wrote:
> On Mon, Oct 20, 2025 at 6:56 AM Baoquan He <bhe@redhat.com> wrote:
> >
> > This update the description about default priority value which is
> > changed in kernel.
> 
> Thanks for sending this. Would it be possible to include a reference to
> the related commit — for example, at least the commit subject? Also,
> does the man page prefer using a link to the kernel patchset?

I see a lot of discussion link is provided in man-pages commit log, and
haven't seen a kernel commit. But I see kernel version is mentioned to
mark since when the man page update is made. It's the first time I
update man page, not sure what is better. Would love to hear suggestions
to improve. Thanks. 

https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git


commit 8982bb673546d95b34f7c35be8cadd8091de2a25
Author: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Date:   Tue Sep 9 16:13:57 2025 -0300

    man/man2/sigaction.2: Update si_code list with Linux v6.16
    
    Update with missing si_code values from Linux v6.16's
    "include/uapi/asm-generic/siginfo.h".
    
    Signed-off-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
    Message-ID: <20250909191357.44951-1-thiago.bauermann@linaro.org>
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
    Signed-off-by: Alejandro Colomar <alx@kernel.org>

> 
> >
> > Link: https://lore.kernel.org/all/20251011081624.224202-1-bhe@redhat.com/
> > Signed-off-by: Baoquan He <bhe@redhat.com>
> > Cc: chrisl@kernel.org
> > Cc: baohua@kernel.org
> > Cc: alx@kernel.org
> > ---
> >  man/man2/swapon.2 | 5 ++---
> >  1 file changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/man/man2/swapon.2 b/man/man2/swapon.2
> > index df5e8d8c7ec6..20e213827733 100644
> > --- a/man/man2/swapon.2
> > +++ b/man/man2/swapon.2
> > @@ -60,9 +60,8 @@ These functions may be used only by a privileged process (one having the
> >  capability).
> >  .SS Priority
> >  Each swap area has a priority, either high or low.
> > -The default priority is low.
> > -Within the low-priority areas,
> > -newer areas are even lower priority than older areas.
> > +The default priority is the lowest,
> > +and all default areas share the same priority value, -1.
> 
> Not sure what “default areas” means.
> maybe just the below?
> "
> Areas that are not assigned a priority will receive the default priority of -1.
> "

Sounds good to me. I will spin v3 to include the update. Thanks for the
great suggesiton.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] iman/man2/swapon.2: update priority section
  2025-10-20 13:09   ` Baoquan He
@ 2025-10-21 16:58     ` Alejandro Colomar
  0 siblings, 0 replies; 6+ messages in thread
From: Alejandro Colomar @ 2025-10-21 16:58 UTC (permalink / raw)
  To: Baoquan He; +Cc: Barry Song, linux-man, chrisl

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

Hi Baoquan, Barry,

On Mon, Oct 20, 2025 at 09:09:20PM +0800, Baoquan He wrote:
> On 10/20/25 at 05:21pm, Barry Song wrote:
> > On Mon, Oct 20, 2025 at 6:56 AM Baoquan He <bhe@redhat.com> wrote:
> > >
> > > This update the description about default priority value which is
> > > changed in kernel.
> > 
> > Thanks for sending this. Would it be possible to include a reference to
> > the related commit — for example, at least the commit subject? Also,
> > does the man page prefer using a link to the kernel patchset?
> 
> I see a lot of discussion link is provided in man-pages commit log, and
> haven't seen a kernel commit. But I see kernel version is mentioned to
> mark since when the man page update is made. It's the first time I
> update man page, not sure what is better. Would love to hear suggestions
> to improve. Thanks. 
> 
> https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git

Feel free to add as much information in the commit message as you want.
I'm always able to remove or edit something if I don't want it, but in
general, the more information you include, the better.  Thanks!


Have a lovely day!
Alex

> 
> 
> commit 8982bb673546d95b34f7c35be8cadd8091de2a25
> Author: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
> Date:   Tue Sep 9 16:13:57 2025 -0300
> 
>     man/man2/sigaction.2: Update si_code list with Linux v6.16
>     
>     Update with missing si_code values from Linux v6.16's
>     "include/uapi/asm-generic/siginfo.h".
>     
>     Signed-off-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
>     Message-ID: <20250909191357.44951-1-thiago.bauermann@linaro.org>
>     Reviewed-by: Carlos O'Donell <carlos@redhat.com>
>     Signed-off-by: Alejandro Colomar <alx@kernel.org>
> 
> > 
> > >
> > > Link: https://lore.kernel.org/all/20251011081624.224202-1-bhe@redhat.com/
> > > Signed-off-by: Baoquan He <bhe@redhat.com>
> > > Cc: chrisl@kernel.org
> > > Cc: baohua@kernel.org
> > > Cc: alx@kernel.org
> > > ---
> > >  man/man2/swapon.2 | 5 ++---
> > >  1 file changed, 2 insertions(+), 3 deletions(-)
> > >
> > > diff --git a/man/man2/swapon.2 b/man/man2/swapon.2
> > > index df5e8d8c7ec6..20e213827733 100644
> > > --- a/man/man2/swapon.2
> > > +++ b/man/man2/swapon.2
> > > @@ -60,9 +60,8 @@ These functions may be used only by a privileged process (one having the
> > >  capability).
> > >  .SS Priority
> > >  Each swap area has a priority, either high or low.
> > > -The default priority is low.
> > > -Within the low-priority areas,
> > > -newer areas are even lower priority than older areas.
> > > +The default priority is the lowest,
> > > +and all default areas share the same priority value, -1.
> > 
> > Not sure what “default areas” means.
> > maybe just the below?
> > "
> > Areas that are not assigned a priority will receive the default priority of -1.
> > "
> 
> Sounds good to me. I will spin v3 to include the update. Thanks for the
> great suggesiton.
> 

-- 
<https://www.alejandro-colomar.es>
Use port 80 (that is, <...:80/>).

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] iman/man2/swapon.2: update priority section
  2025-10-17 12:31 [PATCH v2] iman/man2/swapon.2: update priority section Baoquan He
  2025-10-20  9:21 ` Barry Song
@ 2025-11-24 16:56 ` Alejandro Colomar
  2025-11-25  2:25   ` Baoquan He
  1 sibling, 1 reply; 6+ messages in thread
From: Alejandro Colomar @ 2025-11-24 16:56 UTC (permalink / raw)
  To: Baoquan He; +Cc: linux-man, chrisl, baohua

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

Hi Baoquan,

On Fri, Oct 17, 2025 at 08:31:10PM +0800, Baoquan He wrote:
> This update the description about default priority value which is
> changed in kernel.
> 
> Link: https://lore.kernel.org/all/20251011081624.224202-1-bhe@redhat.com/
> Signed-off-by: Baoquan He <bhe@redhat.com>
> Cc: chrisl@kernel.org
> Cc: baohua@kernel.org
> Cc: alx@kernel.org
> ---
>  man/man2/swapon.2 | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/man/man2/swapon.2 b/man/man2/swapon.2
> index df5e8d8c7ec6..20e213827733 100644
> --- a/man/man2/swapon.2
> +++ b/man/man2/swapon.2
> @@ -60,9 +60,8 @@ These functions may be used only by a privileged process (one having the
>  capability).
>  .SS Priority
>  Each swap area has a priority, either high or low.
> -The default priority is low.
> -Within the low-priority areas,
> -newer areas are even lower priority than older areas.
> +The default priority is the lowest,
> +and all default areas share the same priority value, -1.

Please document the old behavior in the HISTORY section.


Have a lovely day!
Alex

>  .P
>  All priorities set with
>  .I swapflags
> -- 
> 2.41.0
> 

-- 
<https://www.alejandro-colomar.es>
Use port 80 (that is, <...:80/>).

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] iman/man2/swapon.2: update priority section
  2025-11-24 16:56 ` Alejandro Colomar
@ 2025-11-25  2:25   ` Baoquan He
  0 siblings, 0 replies; 6+ messages in thread
From: Baoquan He @ 2025-11-25  2:25 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man, chrisl, baohua

On 11/24/25 at 05:56pm, Alejandro Colomar wrote:
> Hi Baoquan,
> 
> On Fri, Oct 17, 2025 at 08:31:10PM +0800, Baoquan He wrote:
> > This update the description about default priority value which is
> > changed in kernel.
> > 
> > Link: https://lore.kernel.org/all/20251011081624.224202-1-bhe@redhat.com/
> > Signed-off-by: Baoquan He <bhe@redhat.com>
> > Cc: chrisl@kernel.org
> > Cc: baohua@kernel.org
> > Cc: alx@kernel.org
> > ---
> >  man/man2/swapon.2 | 5 ++---
> >  1 file changed, 2 insertions(+), 3 deletions(-)
> > 
> > diff --git a/man/man2/swapon.2 b/man/man2/swapon.2
> > index df5e8d8c7ec6..20e213827733 100644
> > --- a/man/man2/swapon.2
> > +++ b/man/man2/swapon.2
> > @@ -60,9 +60,8 @@ These functions may be used only by a privileged process (one having the
> >  capability).
> >  .SS Priority
> >  Each swap area has a priority, either high or low.
> > -The default priority is low.
> > -Within the low-priority areas,
> > -newer areas are even lower priority than older areas.
> > +The default priority is the lowest,
> > +and all default areas share the same priority value, -1.
> 
> Please document the old behavior in the HISTORY section.

Sure, I will send a new version once the relevant kernel patches are
merged into linus's mainline kernel. Now, it's in Andrew Mortan's MM
tree, the commits are temporary.

Will add the old behaviour as you suggested in v3. Thanks a lot for your
suggestion.

Thanks
Baoquan


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-11-25  2:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-17 12:31 [PATCH v2] iman/man2/swapon.2: update priority section Baoquan He
2025-10-20  9:21 ` Barry Song
2025-10-20 13:09   ` Baoquan He
2025-10-21 16:58     ` Alejandro Colomar
2025-11-24 16:56 ` Alejandro Colomar
2025-11-25  2:25   ` Baoquan He

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox