[LTP] [PATCH] libswap: 6.15 supports one more swapfile with CONFIG_DEVICE_PRIVATE
Jan Stancek
jstancek@redhat.com
Thu Apr 17 10:36:21 CEST 2025
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
More information about the ltp
mailing list