[LTP] [PATCH] hugepages: ensure CONFIG_COMPACTION is defined
Petr Vorel
pvorel@suse.cz
Fri Jul 17 11:34:25 CEST 2026
> Hi!
> > Given that, I don't think we should tst_brk(TCONF) here at all.
> > My suggetion is not to use SAFE_* macros:
> > --- a/lib/tst_hugepage.c
> > +++ b/lib/tst_hugepage.c
> > @@ -47,7 +47,7 @@ unsigned long tst_reserve_hugepages(struct tst_hugepage *hp)
> > }
> > SAFE_FILE_PRINTF(PATH_VM_DROP_CACHES, "3");
> > - SAFE_FILE_PRINTF(PATH_VM_COMPACT_MEMORY, "1");
> > + FILE_PRINTF(PATH_VM_COMPACT_MEMORY, "1");
> Looks good to me.
Li, +1 as well. Thanks all to handle this.
Kind regards,
Petr
More information about the ltp
mailing list