From patchwork Fri Dec 14 06:32:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 10730649 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B2BF914DE for ; Fri, 14 Dec 2018 06:32:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95A7E2C8FE for ; Fri, 14 Dec 2018 06:32:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 881F82C90D; Fri, 14 Dec 2018 06:32:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D68992C8FE for ; Fri, 14 Dec 2018 06:32:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 137178E01BF; Fri, 14 Dec 2018 01:32:25 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 0BE8C8E0014; Fri, 14 Dec 2018 01:32:25 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EA1768E01BF; Fri, 14 Dec 2018 01:32:24 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by kanga.kvack.org (Postfix) with ESMTP id A58088E0014 for ; Fri, 14 Dec 2018 01:32:24 -0500 (EST) Received: by mail-pl1-f198.google.com with SMTP id v12so2931156plp.16 for ; Thu, 13 Dec 2018 22:32:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id; bh=pzNwl8uBgNNyis/bc9NTuPrBgTojXNrJ+rJ9m3YGFp4=; b=Jqqrmyq093Lm24GBMxbnDdWOp4/ctodj06C/JtiVClvHngTN7qlRe3FputymA7ucVD 9jU2OArp6+QuWI4x+orabB36hva+ymwNR8zNycb0KXbbkW28AUBVBZ43nEVScgs3J+N6 P/AfD5bxUTe1nXN9lyrLbD39FZlnELelstq8wQe4ccppdwkRjpH9BxSkjBneOgx8sUgG uZhVB/BlTY8T+OU6vDR8V9v13gp3BEGn+dNrH0hQuktERKmOnC8wAh0/JEnyM2+oa3Br EofnHYRKhZStn1XP63iR5FrJQUWXTuLhjZnI+s+rk+lHGtaxjW2ygCiGI5wtUcx98POA iXnQ== X-Gm-Message-State: AA+aEWbEo1x0pg4jrdbJG3l0xa2270SZxwjwxWNlsufpe/2TF2zqSU7g clazZ7pOs0FhZjYaBtjfMBzvJhTOZVROgnbRpiatq7YzWAbUEP3IX2DMF/IDvVXus58nhHa9Sex Q4jGyRuBKxypVyW8Cs+XYteKPn2FwVMg1R3yxNKefRo5ESVfegbqYkGCF1SLLSY/SNQ63ypTZEl Yk90ZWVsUuVgXxLuLoYI8dytEdMakoMcL4a4mz4xXElJR8Vu4/KhHtIaG5y3dUZ0Arf4/ap7ZSo VsrqxArR1INfyMSY3xe/a65j0v7LtMNzS3nCQmu/Bl6KQ/0YW3IVpYtH7SvVwxqsCu+JYvRW76q hnQbKfYFKZhf0FvnweUYvv8LqBfwDuyr8xtf+O/PvKwRYVTSCHxaBBMR0upEMGUMPRGgk3nwyR3 8 X-Received: by 2002:a63:6704:: with SMTP id b4mr1691594pgc.100.1544769144327; Thu, 13 Dec 2018 22:32:24 -0800 (PST) X-Received: by 2002:a63:6704:: with SMTP id b4mr1691573pgc.100.1544769143638; Thu, 13 Dec 2018 22:32:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544769143; cv=none; d=google.com; s=arc-20160816; b=PD6K8cGdfS68y2Y7JWEdcAjQ0me0Xm20Rn9lWG88DRsGhM4Jy/bg9aa13r7o141BZN JATqku+L2gXKNkjPMrKOrWM1O+a36b+DWUG7eBmpDIbInyzECOnHeFG80ePBj5gf19hZ 3YfVhw8j/QM88s45GRO5iL7x1MLbp26V3FEjfCEESq70107DQdbc0iwuLI9WHz7pAQEE ETiIG53vZIJ79VQ+MxABckZkRD1Rk2/NdzpkiFeedJd7mU8urc9H7BQq+196v6ectuwF m9zL+x/uQo7hZh2I98T3JdJXgwoPSGadrVDDOYjroozEitdQNUs1XqkzUSgilxrfx4qU kIVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=pzNwl8uBgNNyis/bc9NTuPrBgTojXNrJ+rJ9m3YGFp4=; b=GKVch2E7VWc4KcIpR27EBdmPhd2V8h4zYrvfcxOTyQ9Zk1vYiEoEkIgGJjhoe3emlJ wiIBiHoryrqCRwGspx2+TB8VSp4xdKAztgkcA3m6Ik74AYm3JVUpudGbcACI67dCFTu1 8kl6j3ylVfe/+XvxsRql8bQD5WHkYqhirqmU5PbtiJT8Mp31lQI1pk3+fOy2am+iR9gn lmWd9SimxAUkd7ZNk45h1c8L3Pcqdt52XYQgoOrp3dNGGzV6S5z4ZKsKMeKl0OAQT7Pn mCOuyVO/N+bhGvP14GKKRciQWCu84w8Pz/qJD+fobUuV8cRk/O7O+sZbFwGLRDOIacY0 tAyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uyfqPVUL; spf=pass (google.com: domain of richard.weiyang@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id n85sor6421811pfb.16.2018.12.13.22.32.23 for (Google Transport Security); Thu, 13 Dec 2018 22:32:23 -0800 (PST) Received-SPF: pass (google.com: domain of richard.weiyang@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uyfqPVUL; spf=pass (google.com: domain of richard.weiyang@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=pzNwl8uBgNNyis/bc9NTuPrBgTojXNrJ+rJ9m3YGFp4=; b=uyfqPVULO04xu1npW4Rrcu+6JIArwOO9PRfkH1g0Hk8dBIBo0OB2Fwmi0vGxgQph/+ Jo+yjNd1b6xFQdM0HZa7s4gSGap74LyW0ctyi63kxd97/nHMvEJgj5xODIXZTSxYWIBm L88ZNvRzCdZWXjH7CO6P4QQ5RFIhNLaYvWYmqHFe70TrBOlOrTqPKxAgHI/+eL1WRXdM WEeNMnbPfJarb6wsBzis4iqHsQnQ++Bdu4qfQPA3WVbuoJm3aqQwf/Ef1mIkUrZTgIbS 5V/y10Bzz8lStOOdZuWCEVNip1jPzedx9qpsJas/+/2K4ZEAFKalmbzeVY73fxhGkx1D V/2g== X-Google-Smtp-Source: AFSGD/XNoa4Evi0M3bWtY8jmXD39kPiveIOIjUXiG07Apk0AYgvjhF5XomQ84ATBgkO4qOl9pxFklw== X-Received: by 2002:a62:2044:: with SMTP id g65mr1691462pfg.127.1544769143294; Thu, 13 Dec 2018 22:32:23 -0800 (PST) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id i184sm6675396pfc.41.2018.12.13.22.32.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Dec 2018 22:32:22 -0800 (PST) From: Wei Yang To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: akpm@linux-foundation.org, mhocko@suse.com, Wei Yang Subject: [PATCH] mm: remove unused page state adjustment macro Date: Fri, 14 Dec 2018 14:32:11 +0800 Message-Id: <20181214063211.2290-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.15.1 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: X-Virus-Scanned: ClamAV using ClamSMTP These four macro are not used anymore. Just remove them. Signed-off-by: Wei Yang Acked-by: Michal Hocko Reviewed-by: David Hildenbrand --- include/linux/vmstat.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index f25cef84b41d..2db8d60981fe 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h @@ -239,11 +239,6 @@ extern unsigned long node_page_state(struct pglist_data *pgdat, #define node_page_state(node, item) global_node_page_state(item) #endif /* CONFIG_NUMA */ -#define add_zone_page_state(__z, __i, __d) mod_zone_page_state(__z, __i, __d) -#define sub_zone_page_state(__z, __i, __d) mod_zone_page_state(__z, __i, -(__d)) -#define add_node_page_state(__p, __i, __d) mod_node_page_state(__p, __i, __d) -#define sub_node_page_state(__p, __i, __d) mod_node_page_state(__p, __i, -(__d)) - #ifdef CONFIG_SMP void __mod_zone_page_state(struct zone *, enum zone_stat_item item, long); void __inc_zone_page_state(struct page *, enum zone_stat_item);