]> git.baikalelectronics.ru Git - kernel.git/commit
hugetlb: add comment for subtle SetHPageVmemmapOptimized()
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 1 Sep 2022 12:00:28 +0000 (20:00 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:26:10 +0000 (20:26 -0700)
commit73e84111e38197b78fc5e32f179e12be53c2965d
treeaf4b3e4ae61716af2067cc2ee262812bbee8ccd4
parent5f95cc0e88f0da53cb2148471bb42f6852307f37
hugetlb: add comment for subtle SetHPageVmemmapOptimized()

The SetHPageVmemmapOptimized() called here seems unnecessary as it's
assumed to be set when calling this function. But it's indeed cleared
by above set_page_private(page, 0). Add a comment to avoid possible
future confusion.

Link: https://lkml.kernel.org/r/20220901120030.63318-9-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c