[PATCH v1 4/6] eal: refactor --huge-unlink storage

Thomas Monjalon thomas at monjalon.net
Mon Jan 17 15:10:16 CET 2022


17/01/2022 09:07, Dmitry Kozlyuk:
> In preparation to extend --huge-unlink option semantics
> refactor how it is stored in the internal configuration.
> It makes future changes more isolated.
> 
> Signed-off-by: Dmitry Kozlyuk <dkozlyuk at nvidia.com>
> ---
> +/** Hugepage backing files discipline. */
> +struct hugepage_file_discipline {
> +	/** Unlink files before mapping them to leave no trace in hugetlbfs. */
> +	bool unlink_before_mapping;
> +};
[...]
> -	unsigned hugepage_unlink;         /**< true to unlink backing files */
> +	struct hugepage_file_discipline hugepage_file;

That's clearer, thanks.

Acked-by: Thomas Monjalon <thomas at monjalon.net>




More information about the dev mailing list