Re: [RFC PATCH 3/8] mm: Use get_unmapped_area_vmflags()

From: Kirill A. Shutemov
Date: Fri Feb 16 2024 - 07:57:04 EST


On Thu, Feb 15, 2024 at 03:13:27PM -0800, Rick Edgecombe wrote:
> @@ -1879,6 +1879,12 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len,
> return error ? error : addr;
> }
>
> +unsigned long
> +get_unmapped_area(struct file *file, unsigned long addr, unsigned long len,
> + unsigned long pgoff, unsigned long flags)
> +{
> + return __get_unmapped_area(file, addr, len, pgoff, flags, 0);
> +}
> EXPORT_SYMBOL(get_unmapped_area);

Any reason it is not a static inline function in the header file?

--
Kiryl Shutsemau / Kirill A. Shutemov