Re: [LTP] [PATCH] hugepages: ensure CONFIG_COMPACTION is defined
Petr Vorel <[email protected]>
| Newsgroups | it.linux.lists.ltp |
|---|---|
| Message-ID | <20260717093425.GB316902@pevik> |
> 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 -- Mailing list info: https://lists.linux.it/listinfo/ltp