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>
The second one can be done before the loop.
Please declare all variables at the beginning of the block per code style.
Nit: maybe a single comment for both conditions would be more clear: