On Wed, Jan 4, 2023 at 4:24 AM Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> wrote:
2023-01-03 17:00 (UTC-0700), Ashish Sadanandan:
> The code added for allowing --huge-dir to specify hugetlbfs
> sub-directories has a bug where it incorrectly matches mounts that
> contain a prefix of the specified --huge-dir.
>

Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>

Thanks for reviewing
 

The second one can be done before the loop.
Please declare all variables at the beginning of the block per code style.

Done
 

Nit: maybe a single comment for both conditions would be more clear:

Done