Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1222669pxa; Thu, 20 Aug 2020 06:06:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp8dIzfJpdrJ2xYxgX/zm/JSZ4NJwGGYXT+wrhb69S8sXVv5lKjGepK1rQoafXRu7TyM1G X-Received: by 2002:a17:906:1589:: with SMTP id k9mr3092568ejd.115.1597928761794; Thu, 20 Aug 2020 06:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597928761; cv=none; d=google.com; s=arc-20160816; b=y/rcyujKlTt6bPF7CdvfCWr+RuarduvwleuyUwpn97pN6ARjc9BZY/N2YctP1FymB7 4Mc+NelpUyO0E2CBDZEuZ62MbimSNiZzMfr+YlvxIZK39OMXdH8VVH44NSg0adwGzDjw GcjOzvXgDQ5N2QxmCfH/62ajmqpeBvmPWNlyCYwtznb8YdY4+XJpaQ/bHgfW+hdf0nVD yHdwDJY353Dbi/sQaEyFEU+CUOBQaEPFd4WClhbHlVMIpF2EKuGXdcM+iVfyBRixb0tG C7Po6d0hbnAkmEwItMiuTAMhi74YQbCdhkC2xjSDeW6u4OnDvW1wwAne+H1wZ0/8xRkt 4OaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=9Qlf4jXoP5jt/C4m3Gv4DFULDSZN0cJYKBX7J86Hq4I=; b=FchVAVwMSBk9xINqbTQTZO3ILObNxOqUU3K2JvJc4HefcOIBGvN/wIbO03duOyEm19 Y7wnry88ndKCRWwrRddOvJeSs77HWzDILdwnVUPxoUj+P54jlVY7iOfR211pCp5A0ZRG zdArWX2Uq4LtTl2g9iqObbDHiwIdieaDSuGW7LYmnu/0Z5PD0kUg5pKvUu0VHkoK26m/ vkC9rxq9AFwZUgzdMxW3h51z1LHOlgdK8UnqkRYapb5pc0a58PJfZ/03wOWJG5cctsns gkoryyr05Hjr6oVrZmkn7dRdpwrWr+alBcnYXJjHct4nS/0hYaXQMJXaREuBUnxREC26 xLhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dJ9K69ap; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si1233165edy.176.2020.08.20.06.05.34; Thu, 20 Aug 2020 06:06:01 -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=@redhat.com header.s=mimecast20190719 header.b=dJ9K69ap; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729716AbgHTNEa (ORCPT + 99 others); Thu, 20 Aug 2020 09:04:30 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:55309 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729252AbgHTNES (ORCPT ); Thu, 20 Aug 2020 09:04:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597928656; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:in-reply-to:in-reply-to:references:references; bh=9Qlf4jXoP5jt/C4m3Gv4DFULDSZN0cJYKBX7J86Hq4I=; b=dJ9K69apAqkL0vO5C4TdxJp07+o+lN8E1p5rDeqrOv6vVv7x340i1wEl8U4LxbadBf/yuL 3NQ4VVMViYo1oPAWfLt2XCufybliOouJbfYrjCAtsEFd4V/UR86Q6FMs/srlLRqtUefUbQ zaQ/6A2zqecO7zw7JSFTQUrQ15Kd18w= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-236-Ip-RVODANsqHupFz5vvTlg-1; Thu, 20 Aug 2020 09:04:12 -0400 X-MC-Unique: Ip-RVODANsqHupFz5vvTlg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 013441006702; Thu, 20 Aug 2020 13:04:11 +0000 (UTC) Received: from llong.com (unknown [10.10.115.249]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6B8DE69C9D; Thu, 20 Aug 2020 13:04:09 +0000 (UTC) From: Waiman Long To: Johannes Weiner , Michal Hocko , Vladimir Davydov , Andrew Morton , Tejun Heo Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Shakeel Butt , Chris Down , Roman Gushchin , Yafang Shao , Waiman Long Subject: [PATCH 1/3] mm/memcg: Clean up obsolete enum charge_type Date: Thu, 20 Aug 2020 09:03:48 -0400 Message-Id: <20200820130350.3211-2-longman@redhat.com> In-Reply-To: <20200820130350.3211-1-longman@redhat.com> References: <20200820130350.3211-1-longman@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 0a31bc97c80c ("mm: memcontrol: rewrite uncharge API") and commit 00501b531c47 ("mm: memcontrol: rewrite charge API") in v3.17, the enum charge_type was no longer used anywhere. However, the enum itself was not removed at that time. Remove the obsolete enum charge_type now. Signed-off-by: Waiman Long --- mm/memcontrol.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index b807952b4d43..26b7a48d3afb 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -197,14 +197,6 @@ static struct move_charge_struct { #define MEM_CGROUP_MAX_RECLAIM_LOOPS 100 #define MEM_CGROUP_MAX_SOFT_LIMIT_RECLAIM_LOOPS 2 -enum charge_type { - MEM_CGROUP_CHARGE_TYPE_CACHE = 0, - MEM_CGROUP_CHARGE_TYPE_ANON, - MEM_CGROUP_CHARGE_TYPE_SWAPOUT, /* for accounting swapcache */ - MEM_CGROUP_CHARGE_TYPE_DROP, /* a page was unused swap cache */ - NR_CHARGE_TYPE, -}; - /* for encoding cft->private value on file */ enum res_type { _MEM, -- 2.18.1