summaryrefslogtreecommitdiffstats
path: root/Documentation/target
diff options
context:
space:
mode:
authorNaoya Horiguchi <naoya.horiguchi@nec.com>2022-04-28 23:16:02 -0700
committerakpm <akpm@linux-foundation.org>2022-04-28 23:16:02 -0700
commitb283d983a7a6ffe3939ff26f06d151331a7c1071 (patch)
tree369be38981efe0927f6612c66704828fe3f95e41 /Documentation/target
parentef526b17bc3399b8df25d574aa11fc36f89da80a (diff)
downloadlinux-stable-b283d983a7a6ffe3939ff26f06d151331a7c1071.tar.gz
linux-stable-b283d983a7a6ffe3939ff26f06d151331a7c1071.tar.bz2
linux-stable-b283d983a7a6ffe3939ff26f06d151331a7c1071.zip
mm, hugetlb, hwpoison: separate branch for free and in-use hugepage
We know that HPageFreed pages should have page refcount 0, so get_page_unless_zero() always fails and returns 0. So explicitly separate the branch based on page state for minor optimization and better readability. Link: https://lkml.kernel.org/r/20220415041848.GA3034499@ik1-406-35019.vs.sakura.ne.jp Signed-off-by: Naoya Horiguchi <naoya.horiguchi@nec.com> Suggested-by: Mike Kravetz <mike.kravetz@oracle.com> Suggested-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com> Reviewed-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'Documentation/target')
0 files changed, 0 insertions, 0 deletions