Re: [PATCH 1/7] mm/khugepaged: remove unneeded shmem_huge_enabled() check

From: Andrew Morton
Date: Mon Jun 13 2022 - 15:36:30 EST


On Mon, 13 Jun 2022 09:48:27 +0800 Miaohe Lin <linmiaohe@xxxxxxxxxx> wrote:

> > I updated this to
> >
> > If we reach here, hugepage_vma_check() has already made sure that hugepage
> > is enabled for shmem, via its call to hugepage_vma_check(). Remove this
> > duplicated check.
>
> Do you mean "khugepaged_scan_mm_slot() has already made sure that hugepage is
> enabled for shmem, via its call to hugepage_vma_check()"?

yup, thanks.