From patchwork Thu Jul 28 20:45:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kairui Song X-Patchwork-Id: 12931710 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 A4BBDC04A68 for ; Thu, 28 Jul 2022 20:45:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 227BD6B0074; Thu, 28 Jul 2022 16:45:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1B1296B0075; Thu, 28 Jul 2022 16:45:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EA8D18E0001; Thu, 28 Jul 2022 16:45:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id D48EA6B0074 for ; Thu, 28 Jul 2022 16:45:26 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id B1E84C0EC8 for ; Thu, 28 Jul 2022 20:45:26 +0000 (UTC) X-FDA: 79737689052.05.125BEDB Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by imf24.hostedemail.com (Postfix) with ESMTP id 547B1180026 for ; Thu, 28 Jul 2022 20:45:26 +0000 (UTC) Received: by mail-pj1-f47.google.com with SMTP id pw15so2872129pjb.3 for ; Thu, 28 Jul 2022 13:45:26 -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:reply-to :mime-version:content-transfer-encoding; bh=3VreCZyHHh+WzAldTMIrv+f0+ZRGj5qK/tBAl8Rh9YU=; b=FwRN+Dz/EkdantL+2MuehBxRu34vE2XcB9JJwAKV1+CF9A8W4YNymfzAbHnrbk+L2U fR4wNZ+kuA+iAYL+rFBDO2riXI3h0eYhrjVGXQyktY2XHPh3TfoRUdsV8h5ekA0eKkdv z7kpAxEMJG2bbBCVPlhHWuM7BvjkVok8aSEVxBSDukYAzf+WgLda4xfSw/OT3A291gdg ou48O7q9cfHkv/RQWombHOHxI6eODfqLFNqZtaJQOzuI2qjxcEstXuCibnuZX36hWZMm e5EfiwYzC/IamfAWRITnYup9JSvjEVdahnDfoxZD7ktMOsUQNCdQme/sfeOx+rupiVkJ +jPQ== 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:reply-to:mime-version:content-transfer-encoding; bh=3VreCZyHHh+WzAldTMIrv+f0+ZRGj5qK/tBAl8Rh9YU=; b=xVfTL1ljn0F2orfMPwqi+hgf8GhjQlFkwzz0Dxz/CFkMd+XYUvuo9aOxKZ8L9rFlHO 98PJNLnK1qfHhNfJIJ4GibcUbs0GF96d0aRt+qN0hnM3B1dLy9qTcUroOi495i84y4MU hxyffFQ9HhbQxXIgdQS22YoiVCON3iKdtSsMW5eWmDVHip6VqCsHkAZ5wVE3FzIP/ZVA EZbIotwBgYUrFL40HObfuuovRUoVrMKl+tBLqKnBULPHJTlr3Tz8Z1OfdSlT9zT2Ymym sTllULr92F668V1+KUvUaqUPHc+WoWs9UqnUtUoaOfBCScTbdWeHvKUrAiiuA2ktqnia tTCw== X-Gm-Message-State: ACgBeo1mneSypEWJTioEdZIxarCidKZqZg/AlvcFoOnpeXHMfa+D9dlk BLJPpZag6bvTZHrvKRk4FW0Wesk5xDuZl0xyj3U= X-Google-Smtp-Source: AA6agR40gp1BRqPQFl5cX7Tmvlv/+x70OfYLiw3CrWsQmCd4n0R6k3976B5hXnfHCoAHyxuIlaWKiw== X-Received: by 2002:a17:90b:b03:b0:1f3:6fb:bd20 with SMTP id bf3-20020a17090b0b0300b001f306fbbd20mr1215431pjb.38.1659041125076; Thu, 28 Jul 2022 13:45:25 -0700 (PDT) Received: from KASONG-MB0.tencent.com ([114.254.3.190]) by smtp.gmail.com with ESMTPSA id 21-20020a170902c11500b0016c40f8cb58sm1787304pli.81.2022.07.28.13.45.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 28 Jul 2022 13:45:24 -0700 (PDT) From: Kairui Song To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, Andrew Morton , Kairui Song Subject: [RFC PATCH 3/7] mm/headers: change emun order of MM_COUNTERS Date: Fri, 29 Jul 2022 04:45:07 +0800 Message-Id: <20220728204511.56348-4-ryncsn@gmail.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220728204511.56348-1-ryncsn@gmail.com> References: <20220728204511.56348-1-ryncsn@gmail.com> Reply-To: Kairui Song MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1659041126; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=3VreCZyHHh+WzAldTMIrv+f0+ZRGj5qK/tBAl8Rh9YU=; b=eAZCgC+aXsVlkdKr0izP8IoAJiLEV1/h0ogKKTTTnicEUcrF4ScG9OlIMOX0Zpcnqe4C5e X8cG3mit4r56sQ2UYu5G5/IsHcZFVkwNFQnpW9UeFaYaSW+BVq0E0uBrbXwfI/FX4l35Q+ YXeuaIxkDlD29EsGJCyU2F9DERGvCB8= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="FwRN+Dz/"; spf=pass (imf24.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.216.47 as permitted sender) smtp.mailfrom=ryncsn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1659041126; a=rsa-sha256; cv=none; b=3NIGaJlXrUTKuW42/Vzwm5PqEVoQDLtzF+hsabzS1o3koU4Oh54uK/bh2eYnW0cB5AZ7op xCYOKUbIBYOyhh7e7rUFTDIxFIcv0RjgpaGK4GWU7LEYcw8IYGS2bYsCmNXK4FigXIao4b Zty/3HoTfWj5f9fhWhP2rEy5Jx4plGA= X-Stat-Signature: hgs1s8wj433qi5c1gbx66rfsi9ccecq8 X-Rspamd-Queue-Id: 547B1180026 X-Rspam-User: Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="FwRN+Dz/"; spf=pass (imf24.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.216.47 as permitted sender) smtp.mailfrom=ryncsn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam06 X-HE-Tag: 1659041126-473334 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000507, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Kairui Song get_rss reads MM_FILEPAGES, MM_ANONPAGES, MM_SHMEMPAGES. Make them continues so it's easier to read in a loop in following commits. Signed-off-by: Kairui Song --- include/linux/mm_types_task.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mm_types_task.h b/include/linux/mm_types_task.h index a00327c663db..14182ded3fda 100644 --- a/include/linux/mm_types_task.h +++ b/include/linux/mm_types_task.h @@ -43,8 +43,8 @@ struct vmacache { enum { MM_FILEPAGES, /* Resident file mapping pages */ MM_ANONPAGES, /* Resident anonymous pages */ - MM_SWAPENTS, /* Anonymous swap entries */ MM_SHMEMPAGES, /* Resident shared memory pages */ + MM_SWAPENTS, /* Anonymous swap entries */ NR_MM_COUNTERS };