Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH] libswap: 6.15 supports one more swapfile with CONFIG_DEVICE_PRIVATE
@ 2025-04-17  8:36 Jan Stancek via ltp
  2025-04-17 11:20 ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Stancek via ltp @ 2025-04-17  8:36 UTC (permalink / raw)
  To: ltp

Since c25465eb7630 ("mm: use single SWP_DEVICE_EXCLUSIVE entry type")
kernel supports onre more swap file.

Link: https://lore.kernel.org/all/73bea938-15a2-4b4a-8d31-0db9f9c476e0@redhat.com/#t
Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 libs/swap/libswap.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libs/swap/libswap.c b/libs/swap/libswap.c
index 63a995f4e31e..e10355502916 100644
--- a/libs/swap/libswap.c
+++ b/libs/swap/libswap.c
@@ -288,6 +288,8 @@ int tst_max_swapfiles(void)
 			swp_device_num = 2;
 		if (tst_kvercmp(5, 14, 0) >= 0)
 			swp_device_num = 4;
+		if (tst_kvercmp(6, 15, 0) >= 0)
+			swp_device_num = 3;
 	}
 
 	if ((marker.choice == 'y' &&
-- 
2.47.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

end of thread, other threads:[~2025-04-22  7:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-17  8:36 [LTP] [PATCH] libswap: 6.15 supports one more swapfile with CONFIG_DEVICE_PRIVATE Jan Stancek via ltp
2025-04-17 11:20 ` Petr Vorel
2025-04-22  7:23   ` Jan Stancek via ltp

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