mm/hugetlb: remove redundant check in preparing and destroying gigantic page
authorYanfei Xu <yanfei.xu@windriver.com>
Wed, 24 Feb 2021 20:07:22 +0000 (12:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:51 +0000 (16:56 +0200)
commit2e16ad561143b97df021016e1835e5ea72ad499a
tree5fe52b53d24207307d9ad0490137e623ebaaac8b
parent0da83a815d33e39a29391c13de3462b9b6115350
mm/hugetlb: remove redundant check in preparing and destroying gigantic page

[ Upstream commit 5291c09b3edb657f23c1939750c702ba2d74932f ]

Gigantic page is a compound page and its order is more than 1.  Thus it
must be available for hpage_pincount.  Let's remove the redundant check
for gigantic page.

Link: https://lkml.kernel.org/r/20210202112002.73170-1-yanfei.xu@windriver.com
Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
mm/hugetlb.c