Re: [PATCH v2] iman/man2/swapon.2: update priority section
From: Baoquan He <bhe@redhat.com>
Date: 2025-11-25 02:26:01
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:quoted
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/ (local) 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