Re: [PATCH] hugetlb: make hugepage_put_subpool() tolerate NULL
From: Muchun Song
Date: Mon Jul 20 2026 - 23:04:28 EST
> On Jul 20, 2026, at 15:38, Yichong Chen <chenyichong@xxxxxxxxxxxxx> wrote:
>
> Both callers of hugepage_put_subpool() check whether the subpool pointer
> is NULL before calling it. Move the NULL check into
> hugepage_put_subpool() so callers can use the helper unconditionally.
>
> This is a follow-up cleanup after using hugepage_put_subpool() from the
> hugetlbfs_fill_super() failure path.
>
> Signed-off-by: Yichong Chen <chenyichong@xxxxxxxxxxxxx>
Reviewed-by: Muchun Song <muchun.song@xxxxxxxxx>