From patchwork Mon Feb 28 23:57:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 12763900 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A881FC433EF for ; Mon, 28 Feb 2022 23:58:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 39FD88D0003; Mon, 28 Feb 2022 18:58:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 34FED8D0001; Mon, 28 Feb 2022 18:58:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1EFDE8D0003; Mon, 28 Feb 2022 18:58:06 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0172.hostedemail.com [216.40.44.172]) by kanga.kvack.org (Postfix) with ESMTP id 0FAEC8D0001 for ; Mon, 28 Feb 2022 18:58:06 -0500 (EST) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id C215C9A274 for ; Mon, 28 Feb 2022 23:58:05 +0000 (UTC) X-FDA: 79193854530.30.9C915F5 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by imf28.hostedemail.com (Postfix) with ESMTP id 558FBC0004 for ; Mon, 28 Feb 2022 23:58:05 +0000 (UTC) Received: by mail-pj1-f43.google.com with SMTP id bx9-20020a17090af48900b001bc64ee7d3cso652678pjb.4 for ; Mon, 28 Feb 2022 15:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7qVTXgEk7jDbNe3RIcGVI67pez+4LMoxn8Ha8tkNEVM=; b=I/uneKQYRfBvvU1QYfMRxA9cdeOKNDx/GA80yQj/Vii5WOYT8JOLzKQ39OtDsLJu0e w68+trSpW+r3e+66nPqchuDl41VrZKCXAQGBhtvqKIYb9WYtGnPkgetwDILXcx3Ufnm6 qMBAVb3txy8flmueV6alKq9spfgtUhlVfk7krxGlnlerA9XBBtqiWGZLBz96Yoa74hLj Od7jXKzhB8UI9wQQeuJYi4wYkOq19NjFPBQEOFDqXYdIwIKiaAZkzknKapA4y0+lcBGv J2k+NZJFmd7jy+8HFikciV61Djwz36lqySOqaLUGqMA7vNp0f/ai6ZRZpZv18TqYZ8j0 EYOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7qVTXgEk7jDbNe3RIcGVI67pez+4LMoxn8Ha8tkNEVM=; b=LETJEJp9sIqfo9OICrThHGTjG7QutnvGGIMMM6c7G8IcXq2A6dxdHfE309WluaZmU7 XthK5qaz6HeUbbm1R46aZN+kstk54GAF+3miqjzVFoT4e9wmYMtQKWYXdjdzJw7cHPMv vDkVjgCp1lqy+kooHNqA0di+oW3U7k1VvEO6w9ihNiEOincT3ny1Q6NyLh+sCvURIQCC m4igGhkiEJ6oqElewMgSz71Z7lOY7C6Fte+jd/jC7lfAj/Y4Mb4dUA2246YB4sIdy62d yIaDJJiC1UND2Z0oGbCzcWeFE76bO5HBCWvgV5f8bilai7FbarBf4CGGBtNMf+bEJ8LV ydUQ== X-Gm-Message-State: AOAM530UEXWfFn8Aeadra0qKYq0EaCXoqooQc0+GXc6Qvpi3uOhslMM5 om1L3a0GNcHYSZ+RCs2KwbY= X-Google-Smtp-Source: ABdhPJwS2d/mQvKUD9RT9YRNebvue4fyV0w7v+iF01ewR6eZtUfak47eHHmfgpbarwiWX2HhFS9nLA== X-Received: by 2002:a17:902:b204:b0:14d:a8c8:af37 with SMTP id t4-20020a170902b20400b0014da8c8af37mr23074869plr.108.1646092684471; Mon, 28 Feb 2022 15:58:04 -0800 (PST) Received: from localhost.localdomain (c-67-174-241-145.hsd1.ca.comcast.net. [67.174.241.145]) by smtp.gmail.com with ESMTPSA id on15-20020a17090b1d0f00b001b9d1b5f901sm396963pjb.47.2022.02.28.15.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 15:58:04 -0800 (PST) From: Yang Shi To: vbabka@suse.cz, kirill.shutemov@linux.intel.com, songliubraving@fb.com, linmiaohe@huawei.com, riel@surriel.com, willy@infradead.org, ziy@nvidia.com, akpm@linux-foundation.org, tytso@mit.edu, adilger.kernel@dilger.ca, darrick.wong@oracle.com Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/8] sched: coredump.h: clarify the use of MMF_VM_HUGEPAGE Date: Mon, 28 Feb 2022 15:57:34 -0800 Message-Id: <20220228235741.102941-2-shy828301@gmail.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20220228235741.102941-1-shy828301@gmail.com> References: <20220228235741.102941-1-shy828301@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 558FBC0004 X-Stat-Signature: 746gn3ywfm4jtgpotrpx4ikzu9awewjg Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="I/uneKQY"; spf=pass (imf28.hostedemail.com: domain of shy828301@gmail.com designates 209.85.216.43 as permitted sender) smtp.mailfrom=shy828301@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1646092685-971841 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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. Signed-off-by: Yang Shi Reviewed-by: Miaohe Lin --- 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