[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b4935d67-36b1-3346-f04c-8d247b462583@suse.cz>
Date: Mon, 9 May 2022 14:25:07 +0200
From: Vlastimil Babka <vbabka@...e.cz>
To: Yang Shi <shy828301@...il.com>, kirill.shutemov@...ux.intel.com,
linmiaohe@...wei.com, songliubraving@...com, riel@...riel.com,
willy@...radead.org, ziy@...dia.com, tytso@....edu,
akpm@...ux-foundation.org
Cc: linux-mm@...ck.org, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [v3 PATCH 1/8] sched: coredump.h: clarify the use of
MMF_VM_HUGEPAGE
On 4/4/22 22:02, Yang Shi wrote:
> MMF_VM_HUGEPAGE is set as long as the mm is available for khugepaged by
> khugepaged_enter(), not only when VM_HUGEPAGE is set on vma. Correct
> the comment to avoid confusion.
>
> Reviewed-by: Miaohe Lin <linmiaohe@...wei.com>
> Acked-by: Song Liu <song@...nel.org>
> Signed-off-by: Yang Shi <shy828301@...il.com>
Acked-by: Vlastmil Babka <vbabka@...e.cz>
> ---
> include/linux/sched/coredump.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/linux/sched/coredump.h b/include/linux/sched/coredump.h
> index 4d9e3a656875..4d0a5be28b70 100644
> --- a/include/linux/sched/coredump.h
> +++ b/include/linux/sched/coredump.h
> @@ -57,7 +57,8 @@ static inline int get_dumpable(struct mm_struct *mm)
> #endif
> /* leave room for more dump flags */
> #define MMF_VM_MERGEABLE 16 /* KSM may merge identical pages */
> -#define MMF_VM_HUGEPAGE 17 /* set when VM_HUGEPAGE is set on vma */
> +#define MMF_VM_HUGEPAGE 17 /* set when mm is available for
> + khugepaged */
> /*
> * This one-shot flag is dropped due to necessity of changing exe once again
> * on NFS restore
Powered by blists - more mailing lists