]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hugetlb: simplify the code when alloc_huge_page() failed in hugetlb_no_page()
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 5 May 2021 01:33:31 +0000 (18:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 May 2021 18:27:20 +0000 (11:27 -0700)
commitbbecacfc20b3c1029e5573a51d8fff25fa8da635
treee6fbe475efec7f0a2277c65fdb9d1b947c5628b6
parentdb9d9204b4e2a9939deba9f47eaf7c062cce574c
mm/hugetlb: simplify the code when alloc_huge_page() failed in hugetlb_no_page()

Rework the error handling code when alloc_huge_page() failed to remove
some duplicated code and simplify the code slightly.

Link: https://lkml.kernel.org/r/20210308112809.26107-5-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c