Skip to contentSkip to conversation

iman/man2/swapon.2: update the description about default priority value iman/man2/swapon.2: update priority section

PATCH In review Baoquan He 1 participant 2 messages Oct 17, 2025 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

Baoquan He

author
#0 lore raw

PATCH 1/1 iman/man2/swapon.2: update the description about default priority value iman/man2/swapon.2: update priority section

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

---
 man/man2/swapon.2 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
man/man2/swapon.2 +2 -3
index df5e8d8c7ec6..20e213827733 100644
@@ -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
Signature · 1 line
2.41.0
author
#1 lore raw
Quoted 2 lines · Baoquan He

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

Sorry, I carelessly kept one draft sentence in the subject. Will send v2 to fix it, hence NACK this one by myself.

Quoted 29 lines
---
 man/man2/swapon.2 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
man/man2/swapon.2 +2 -3
index df5e8d8c7ec6..20e213827733 100644
@@ -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
Signature · 1 line
2.41.0