Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2239264pxb; Fri, 17 Sep 2021 05:37:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdgdyHNDT19uNTJcHgj9+a05qC67qfvs14tevj5cGYuWUGdgxoIbz3Yaqwup0wMoTc7PwZ X-Received: by 2002:a17:906:3281:: with SMTP id 1mr11782917ejw.167.1631882257674; Fri, 17 Sep 2021 05:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631882257; cv=none; d=google.com; s=arc-20160816; b=S/55+nuDbY+RdEs00fD8KCYdZBWbRV3rAJQiNb4OUNXpTYYVgPpSlzYWx7qmyTBkW9 e71+HkWLxMOtSbL7pr6v96FB6zyM7Q9gLaGwvIPvaHOUygd9VvxKBUnTOmy46cyboVB9 JPEdC22wnXDSEtlnBvPb/pPHxrOrm9qfVPRDfKBsqFvr/cnl+FsnmxqJBK8JcOEa8eHb tAgeYD9lyeit5Ti2+VNa83NZvJKpP8QKF5Yl6RiFO0mG7++7+xwbXDQB93zahUPZFXIa P71SVKCT+/iZrzbGyviS/yNik20TktvEe4s+PdNIjB5YQjkYThkHIHk4NxKfIDbjlO7i qVVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QLxAgvPiwV4LgGOV9DMw00Rt94l7Vhe8/b9r97CCM90=; b=crbm0DyCI6dr1kID3wqngxszlfhHAgzOS3V+E2oVaEZhMQcZWXPuDse7cKf8ey8wW+ dwDs4uX6XeVVkkCId3mr1C2ekx5qk4cfAK205E9ZFyXhqeVaWwN8aeAwNAY5gAk19Dfe aXZZoIrpI0CQuQT34iaormCdjPV7Hms36256AUKTr/vQGZ94ZM0piWg8wYbIrYJvGOCH Eu5EJzkm7/SKTt6wd5bo8JD8MX5e6FkfT7nI6j+ltEUGZXF6Bv+53Gb/8AWwVrpvDOOT gpZC6uY4eTmbPZj/+1L4wugnAJpnMdQzbcN/YN17RzE5wSiL5C9K7SoXQNQE+ho1dhQt y/pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kNHv+MrE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s26si3653699edi.291.2021.09.17.05.37.13; Fri, 17 Sep 2021 05:37:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kNHv+MrE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242554AbhIQGQ6 (ORCPT + 99 others); Fri, 17 Sep 2021 02:16:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236332AbhIQGQ4 (ORCPT ); Fri, 17 Sep 2021 02:16:56 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84800C061574 for ; Thu, 16 Sep 2021 23:15:35 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id q68so8612903pga.9 for ; Thu, 16 Sep 2021 23:15:35 -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:mime-version :content-transfer-encoding; bh=QLxAgvPiwV4LgGOV9DMw00Rt94l7Vhe8/b9r97CCM90=; b=kNHv+MrElC2vzdt/M+tEutVmMvcn4Y/4N67GSh8mSsmx0BDCp8lQBi7teNv/SjiMtP pNhs+obL+RbCO9mFdmamid2DtQfqN+Em5ht7d8brGpRaWuZLsnCEC8gxdyx1MJLocthd 7sqMy2xrpH5xC/bGCiQFwS1a+182w9QrnMCk7LRQezO2Bjpl4psj5lvhILZWIpxexRM7 oY8dnvOSYhXGxD3P37IutXjAaV7VvKZuYZpDxTm6Sz8bCw4T2ELeWvThQN1zNZqEqVIi Y8cR/QVx9XKxxGBg6LcxnAA9Sh8+3XjCUR9IFK6nxI+TasXbHBsbMOhFSuEdFkH+ZiI+ F9kA== 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:mime-version :content-transfer-encoding; bh=QLxAgvPiwV4LgGOV9DMw00Rt94l7Vhe8/b9r97CCM90=; b=6e658XoCRgSKc82uqnIZpZz7ZwO/abyVHGMTo+BocCQXXMcsuMXj1JvGHmblR5WOOQ 01SXFvp6LstO5yZtaCvJoj9oa+RXsfiMMQl9dH30HIkaPZzn7IaqXspeedgjIS4qxKeH /KRUZHd7a+iv+TQzAhzSNmPwyPSxBGfQvwMU+Eoub8Ozy88wTYYC41d0Q178iasEcwx4 TIn7NbEEefPU0/VZ5+gg75/AzP+njxSvpLvnQApCu1FbmHU/7DtVze8zjuMpqimteg/m TEShHrvjUKVfJtaySTIEFKpwMo6tdlsiaaxu/hWw0785ilJD08Hj69B+X+JUpow+HjgA o8bQ== X-Gm-Message-State: AOAM531vsVnnpaF0L6+RJN+njQhrTKSvGHbjhqFz7/zI3LlUmA2OB6M9 qQu13WCurz9NVg3qA7EaOPE= X-Received: by 2002:a63:4f43:: with SMTP id p3mr8287107pgl.435.1631859333842; Thu, 16 Sep 2021 23:15:33 -0700 (PDT) Received: from ownia.. ([173.248.225.217]) by smtp.gmail.com with ESMTPSA id h15sm4687274pfo.54.2021.09.16.23.15.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 23:15:33 -0700 (PDT) From: Weizhao Ouyang To: Andrew Morton , John Hubbard , Pavel Tatashin , Oscar Salvador , "Huang, Ying" , Yang Shi , Zi Yan , Dave Hansen Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Weizhao Ouyang Subject: [PATCH] mm/debug: sync up latest migrate_reason to migrate_reason_names Date: Fri, 17 Sep 2021 14:14:32 +0800 Message-Id: <20210917061432.323777-1-o451686892@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After related migrate page updates, sync up latest migrate_reason to migrate_reason_names, page_owner use it to parse the page migrate reason. Fixes: d1e153fea2a8 ("mm/gup: migrate pinned pages out of movable zone") Fixes: 26aa2d199d6f ("mm/migrate: demote pages during reclaim") Signed-off-by: Weizhao Ouyang --- mm/debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/debug.c b/mm/debug.c index e73fe0a8ec3d..733770b0ed0c 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -25,6 +25,8 @@ const char *migrate_reason_names[MR_TYPES] = { "mempolicy_mbind", "numa_misplaced", "cma", + "longterm_pin", + "demotion", }; const struct trace_print_flags pageflag_names[] = { -- 2.30.2