Re: [PATCH] hugepages: ensure CONFIG_COMPACTION is defined
Cyril Hrubis <[email protected]>
| Newsgroups | gmane.linux.ltp |
|---|---|
| Message-ID | <[email protected]> |
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. -- Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp