Re: [PATCH] mm: ensure the uniformity of arguments passed to do_mmap(..)

From: Matthew Wilcox
Date: Sat Jan 04 2025 - 11:45:40 EST


On Sat, Jan 04, 2025 at 03:39:25PM +0900, Leesoo Ahn wrote:
> Standardize the way of passing a value to @populate parameter of do_mmap(..)
> as follow:
>
> 1. Caller must initialize the variable to 0, except it's clarified as
> the name of the variable, 'unused'.
> 2. do_mmap(..) doesn't take care of its initialization.

Why? This seems fragile.