diff options
| author | Yichong Chen <chenyichong@uniontech.com> | 2026-07-20 15:38:41 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-08-06 18:57:20 -0700 |
| commit | 60191388cad91a718b0c05fd6a8f45fd4ec3997f (patch) | |
| tree | cf0cd39e22ff32b14f0cc1a8eed3a19986316baa /tools/perf/scripts/python | |
| parent | 39e9b8aeaa2629724e8131b20b2b7f93e02eb3d9 (diff) | |
hugetlb: make hugepage_put_subpool() tolerate NULL
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.
Link: https://lore.kernel.org/20260720073841.1389354-1-chenyichong@uniontech.com
Signed-off-by: Yichong Chen <chenyichong@uniontech.com>
Reviewed-by: Muchun Song <muchun.song@linux.dev>
Cc: David Hildenbrand <david@kernel.org>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
