]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/hugetlb: create hstate_is_gigantic_no_runtime helper
authorUsama Arif <usamaarif642@gmail.com>
Thu, 9 Oct 2025 17:24:30 +0000 (18:24 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Nov 2025 01:28:00 +0000 (17:28 -0800)
commita743e0af503a633e4ca68a100d9b2a1a071fe8ae
tree43312d22f05bdf5951ac657a11cc173e633743da
parent2783088ef24e32df9d70eb2a24f70de28b476a05
mm/hugetlb: create hstate_is_gigantic_no_runtime helper

This is a common condition used to skip operations that cannot be
performed on gigantic pages when runtime support is disabled.  This helper
is introduced as the condition will exist even more when allowing
"overcommit" of gigantic hugepages.  No functional change intended with
this patch.

Link: https://lkml.kernel.org/r/20251009172433.4158118-1-usamaarif642@gmail.com
Signed-off-by: Usama Arif <usamaarif642@gmail.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Shakeel Butt <shakeel.butt@linux.dev>
Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Oscar Salvador <osalvador@suse.de>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Rik van Riel <riel@surriel.com>
Cc: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c