[LTP] [PATCH v2] hugetlb: fix warnings in cleanup()
Cyril Hrubis
chrubis@suse.cz
Fri Dec 1 14:23:55 CET 2017
Hi!
> +void save_nr_hugepages(void)
> +{
> + check_hugepage();
> + orig_hugepages = get_sys_tune("nr_hugepages");
> +}
I've changed this function to return the orig_hugepages instead of void
so that we can use it in the testcases when needed. Since I find this a
bit cleaner solution than having the library internal variable exported
in header file. Pushed, thanks a lot.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list