[LTP] [PATCH 0/3] swap{on,off} fixes for page size > 4KB

Petr Vorel pvorel@suse.cz
Thu Apr 18 16:13:09 CEST 2024


Hi Li, Cyril,

this is supposed just to fix our swap{on,off} tests on kernel with page
size > 4KB.

NOTE: while I first wanted to also convert include/libswap.h docs to the
new format, I'll postpone it to a separate effort to speedup this fix.

This is a replacement of "libswap: Change TWARN message to TINFO":

https://lore.kernel.org/ltp/20240417090222.707302-1-pvorel@suse.cz/
https://patchwork.ozlabs.org/project/ltp/patch/20240417090222.707302-1-pvorel@suse.cz/

Kind regards,
Petr

Petr Vorel (3):
  swapoff0[12]: Remove unneeded tst_brk()
  libswap: Add {SAFE_,}MAKE_MINIMAL_SWAPFILE() macros
  libswap: Use {SAFE_,}MAKE_MINIMAL_SWAPFILE()

 include/libswap.h                             | 17 +++++++++++++++++
 libs/libltpswap/libswap.c                     |  2 +-
 testcases/kernel/syscalls/swapoff/swapoff01.c |  4 +---
 testcases/kernel/syscalls/swapoff/swapoff02.c |  4 +---
 testcases/kernel/syscalls/swapon/swapon02.c   |  4 ++--
 testcases/kernel/syscalls/swapon/swapon03.c   |  4 ++--
 6 files changed, 24 insertions(+), 11 deletions(-)

-- 
2.43.0



More information about the ltp mailing list