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)
commita9e1eab241bdaadd56b6cfdc481cff6a24c4799b
treeaf4b3e4ae61716af2067cc2ee262812bbee8ccd4
parent29be84265fe0023cff8b5aa4fa670b55453c3afc
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