From patchwork Thu Mar 17 23:48:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 12784675 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 B7D06C43219 for ; Thu, 17 Mar 2022 23:48:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 297708D0005; Thu, 17 Mar 2022 19:48:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2456F8D0001; Thu, 17 Mar 2022 19:48:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 10E1A8D0005; Thu, 17 Mar 2022 19:48:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0061.hostedemail.com [216.40.44.61]) by kanga.kvack.org (Postfix) with ESMTP id ECE278D0001 for ; Thu, 17 Mar 2022 19:48:38 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id AD9AC8249980 for ; Thu, 17 Mar 2022 23:48:38 +0000 (UTC) X-FDA: 79255520316.23.871C796 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by imf23.hostedemail.com (Postfix) with ESMTP id 5450514001C for ; Thu, 17 Mar 2022 23:48:38 +0000 (UTC) Received: by mail-pg1-f171.google.com with SMTP id c11so3850696pgu.11 for ; Thu, 17 Mar 2022 16:48:38 -0700 (PDT) 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=iUyPpt9yITb+v7E1k0NmB1H1X1O1cjuxJvXjp7qmzqs=; b=KGAXD1pdDKssYLDVJnzInpkYLVCjld8aQdSBPEtJyRYQAiZw78n32N/TO102SQyHmf yOjOvBMg/wJhYADen1q6xkUT8Kar/VUyxw5Gau+O7qYozSjj73pdubTi8sBu+AXtmQ9w xHDtlPvykFut8SJqHAJvJG8KZXZEgPAfadKVFTIJbw8dVHx1yzTemBdDvujvug/x2qut eix5xqdQfVaM/rl64UUQMBtdNSpAx+pya3QxiaWXDfnBGfWayz7Mc6b1ZgeEJOtJBr9L vkOMQEbHQ2bn1ECcRnsEg3MzTu+Log1ScTC8rww7WRae0dOAlzhO2LwjprdtM/HKhCXP sqrw== 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=iUyPpt9yITb+v7E1k0NmB1H1X1O1cjuxJvXjp7qmzqs=; b=4q4j2DaHk5fBvLwva6kO8qDuNBk3oE3ZUxhhDiCUrkvxRGJXJH6UvgJf3cxn606cIs NWOitevzNcuW9DV5+bauE6I24ZUn4EJ8nLeWTFqm87QMhc1+0yrsHWnnKs1fTDSKcQxT 6wGLYvn4vosfzoDKjk8jF/65uqhojeYvI12lUVvMJNOXub3PsdSQ6cZGHdaeCMqDee/2 yZgjyHT/5qDmDbVMQKmJhtZqyoMvHr/aj723prb9ahXmH4zdY+E3nHeBzUWW9cKKuOAg l2khzMMdR8hMJjn6dBwVRLAwg/n3CdvIv8hASPKPC5kdwDH9ibkXlnzWdGnzMklUjbYU bBSA== X-Gm-Message-State: AOAM532DEhGvkcOmtG++9p1CAgLVVtI9f4xAnw6kdHkl8JoTtOzk4wDh GCi49yldGNfKpdfUlJx3/zo= X-Google-Smtp-Source: ABdhPJy/71kNE1QNAXF397FsY5nOp4oXeRKHByVUgbhgNMHcH+U1wY50LwEcOseYcTKRNJDA4ZMvIg== X-Received: by 2002:a63:4e41:0:b0:381:7d61:ed68 with SMTP id o1-20020a634e41000000b003817d61ed68mr5651161pgl.132.1647560917456; Thu, 17 Mar 2022 16:48:37 -0700 (PDT) Received: from localhost.localdomain (c-67-174-241-145.hsd1.ca.comcast.net. [67.174.241.145]) by smtp.gmail.com with ESMTPSA id o7-20020aa79787000000b004f8e44a02e2sm8581329pfp.45.2022.03.17.16.48.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 16:48:37 -0700 (PDT) From: Yang Shi To: vbabka@suse.cz, kirill.shutemov@linux.intel.com, linmiaohe@huawei.com, songliubraving@fb.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: shy828301@gmail.com, 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: [v2 PATCH 1/8] sched: coredump.h: clarify the use of MMF_VM_HUGEPAGE Date: Thu, 17 Mar 2022 16:48:20 -0700 Message-Id: <20220317234827.447799-2-shy828301@gmail.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20220317234827.447799-1-shy828301@gmail.com> References: <20220317234827.447799-1-shy828301@gmail.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 5450514001C X-Stat-Signature: ddhopstr59hah1j1cmiq9qqoybswmt9h Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KGAXD1pd; spf=pass (imf23.hostedemail.com: domain of shy828301@gmail.com designates 209.85.215.171 as permitted sender) smtp.mailfrom=shy828301@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-HE-Tag: 1647560918-984605 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. Reviewed-by: Miaohe Lin Signed-off-by: Yang Shi --- 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