From patchwork Wed May 9 11:57:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Tkhai X-Patchwork-Id: 10389249 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ED54B60236 for ; Wed, 9 May 2018 11:57:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCD3128BC8 for ; Wed, 9 May 2018 11:57:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D169328EA3; Wed, 9 May 2018 11:57:23 +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, 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 6012428BC8 for ; Wed, 9 May 2018 11:57:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 683C06B04F4; Wed, 9 May 2018 07:57:21 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6595B6B04F5; Wed, 9 May 2018 07:57:21 -0400 (EDT) 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 521AF6B04F6; Wed, 9 May 2018 07:57:21 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f197.google.com (mail-pf0-f197.google.com [209.85.192.197]) by kanga.kvack.org (Postfix) with ESMTP id 0FD346B04F4 for ; Wed, 9 May 2018 07:57:21 -0400 (EDT) Received: by mail-pf0-f197.google.com with SMTP id d20so5735162pfn.16 for ; Wed, 09 May 2018 04:57:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:subject:from:to:date:message-id :in-reply-to:references:user-agent:mime-version :content-transfer-encoding:spamdiagnosticoutput :spamdiagnosticmetadata; bh=bvTOhhzafBIbnrGHiSvQjRCEOJbvnQjYti1uuw+Yl5k=; b=fb/szXaEaRlEsYfAehrUAMSPHo7HWNA5wpueDFABfVyyrqOW/JPSSoSN6OiIsOqsk9 qb9rzxxMEkyS9OpK7etuCbIoNu/3wbkLBKFHq9oUwzU6CTlEHVGdgYG+OM8r67Sc7tNa XmgMm49Czo6RaJaknC6qpa8u+yQX96yCPd/eb8oOS6dX1WdYHvUB/s6ljISwjXtursP6 aUEdEqNvQwTL4H2h+nITKE6cSa7AYLmFHO8s9UThQ3vELB9HD4ceX1u4j2ynm68OpvZI 9eX81uNXvMUPos13Kk6XwdoJ+FtooknvCS2ygzk2YuY9oj41XrGuXCAWTJMpi8HjJQl5 tmDg== X-Gm-Message-State: ALQs6tDvd1rWAO6hHDZVi7u79WqW8umBYprt3+7PAyeq00zcZB9AMNtJ 7N9QOa5YCBZO8s7ACP6TCYn/FZDPOBMtdSZ/SM255/FmcM+wfnvvoRLZNVX5HL8MwFkx7KyIMvM quN14TcqP+rTbtRMNJBVcrFdsLgCtKNeyru8BLGg/C6o4wGlSvA6ZN8yEJ9lw+JXafg== X-Received: by 2002:a63:4285:: with SMTP id p127-v6mr36269277pga.421.1525867040731; Wed, 09 May 2018 04:57:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqpVkDVFEc+C1yvrpwE5R/+zluordo+JrJaeK316QZ67fNhYnJhwoyBcgELXLhVIRFsvbFc X-Received: by 2002:a63:4285:: with SMTP id p127-v6mr36269232pga.421.1525867039838; Wed, 09 May 2018 04:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525867039; cv=none; d=google.com; s=arc-20160816; b=g+E16Dgtf+y9eSzOi2Bw4PvsoijQs+htscGdmDL21f5lnTB7zE9wxFl9iKUN7p9FNa a94+XTjhOid+/yEse/NQ+LVonE58tJ7FPjzbwm00dMspQ6roON38HFCqE/WLmtMWwh72 GJkBumxaTAOE3aHpMKUX5nRGluNwqqlxB8ttUxuHpOC6llVP+poDEw6TGbGuPH1m+zl7 dyOu2rrDrNMjiaP7ho5JVgUGIbvNGVwf12VzlmWlfGy/eAunfgDbZu/4ClPsA/KBpcgb Uw8ZwIqESFSB4VFjwJRHaUYl8QIhQQPykay2cKJlsCVkNVPt5HueBKf7nHk3yqqQmuw5 FzgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=spamdiagnosticmetadata:spamdiagnosticoutput :content-transfer-encoding:mime-version:user-agent:references :in-reply-to:message-id:date:to:from:subject:dkim-signature :arc-authentication-results; bh=bvTOhhzafBIbnrGHiSvQjRCEOJbvnQjYti1uuw+Yl5k=; b=BofgWXdqQqlTlHsyz18SLqDYxa7TXZnxp5V2m6nT/e0yct/5C5DrGQZrb4KxuMOJw+ YuKsqRGgUpbzwqhWQENTrFduyEkq7pJLj39PEgt+kb1A0v4KAJwAhNqOH1wZ//ta3h8F ODLYyDjUzN27T7Pha2EDLDuMQXOVj2R3KuUeYIeCWmpyPwqU2EXs1XRN4V8z31Mrxumn HqC2cX10AVHIgUF0rWTMkmAl1lBl6lYHBJ07b4Po4dKniCBDVwaS5uZqzshkL/WZJDSZ L9wmaAKg2JErvFSQ8JFw2PrvwxmbR00KdPHzQyoLvxLLrojZR/YrnnsVos4Vh/Yzsseg 49HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=IdP0+YWk; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.0.121 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0121.outbound.protection.outlook.com. [104.47.0.121]) by mx.google.com with ESMTPS id j21-v6si20904372pgn.334.2018.05.09.04.57.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 May 2018 04:57:19 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.0.121 as permitted sender) client-ip=104.47.0.121; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=IdP0+YWk; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.0.121 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bvTOhhzafBIbnrGHiSvQjRCEOJbvnQjYti1uuw+Yl5k=; b=IdP0+YWkFh1cHztZP7SGcyzCNN98hYJy2HlO65YfQ5dVKBnMe87aS4eAOjQVjKqMC6zHlgY+exVLEvhBeZQdCe+X4CWfwGX+mqF7J31xE8zhw5Uoy/1s2cpBCL5YEzc7uE9NExICNFgCGXDN2WWH68XULJn3NxYZOtPkdFUu5sQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by VI1PR0801MB1342.eurprd08.prod.outlook.com (2603:10a6:800:3a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.17; Wed, 9 May 2018 11:57:08 +0000 Subject: [PATCH v4 02/13] memcg: Move up for_each_mem_cgroup{, _tree} defines From: Kirill Tkhai To: akpm@linux-foundation.org, vdavydov.dev@gmail.com, shakeelb@google.com, viro@zeniv.linux.org.uk, hannes@cmpxchg.org, mhocko@kernel.org, ktkhai@virtuozzo.com, tglx@linutronix.de, pombredanne@nexb.com, stummala@codeaurora.org, gregkh@linuxfoundation.org, sfr@canb.auug.org.au, guro@fb.com, mka@chromium.org, penguin-kernel@I-love.SAKURA.ne.jp, chris@chris-wilson.co.uk, longman@redhat.com, minchan@kernel.org, ying.huang@intel.com, mgorman@techsingularity.net, jbacik@fb.com, linux@roeck-us.net, linux-kernel@vger.kernel.org, linux-mm@kvack.org, willy@infradead.org, lirongqing@baidu.com, aryabinin@virtuozzo.com Date: Wed, 09 May 2018 14:57:05 +0300 Message-ID: <152586702519.3048.13324048197835952040.stgit@localhost.localdomain> In-Reply-To: <152586686544.3048.15776787801312398314.stgit@localhost.localdomain> References: <152586686544.3048.15776787801312398314.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0301CA0019.eurprd03.prod.outlook.com (2603:10a6:3:76::29) To VI1PR0801MB1342.eurprd08.prod.outlook.com (2603:10a6:800:3a::28) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:VI1PR0801MB1342; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1342; 3:8H9mZtYHeGNwrRxx1ykOb/hZ1MiwEydWNoWnUwh4q6JdB3B6Y2AUFi9eBhdY+v2uv7qRPpkgq7BPtRghuWhBPpUj/m5zB7zQ9hDKeNI7EIXdLHgRdPLWJ8gOv4XAmDS6/hVBXXy11t2wlxzUpj/WSySIf8Witwlm1jkE6mGRVpAeF9Wzi6rS7UXl2nTE7MucXBVkl3XYuebdKZMl/RsaNOAFc8wn1gxhf8wa9LSqjdvJ8nX6OiA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27IjwZ7f0ggyCkIO/ItnqEiBJZQRs7LslDTub7zbamm1csnT1POmqewlxbhGBcT9Sh40L0XvSg41nzfmD2j7HSf4mnP/OP0cbms+QWnQZ; 4:OFAnwKpIGTLWlw100OCl33au0AqmHRKG6lh+tKuowi8lYZH03uVLu/EJD/ZxSr5OlBZsoinPXxKL4selC3RwfOb9CXWcbADcgkKpisn7uCOSGphpj4wJZJc8EFJLYaUiIoK6gf+zkJLzhwi9dllqbGKrtU8EG76hVxueO3XKgNwetiQvbAX6XM9COkou626lyfLvtjP2Ao1/0FT6opEPOiui/ixxjleTM+KpcF/pwL/6DugIN4+Oq97SuW25ElTp0wg9eqCxU5CX0IIuwhCPdA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:VI1PR0801MB1342; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1342; X-Forefront-PRVS: 0667289FF8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(346002)(396003)(39850400004)(366004)(376002)(39380400002)(189003)(199004)(8936002)(26005)(68736007)(52116002)(2486003)(23676004)(186003)(97736004)(61506002)(6116002)(86362001)(3846002)(105586002)(106356001)(16526019)(25786009)(478600001)(47776003)(11346002)(486006)(66066001)(55016002)(7416002)(956004)(76176011)(446003)(305945005)(230700001)(7696005)(5660300001)(7736002)(316002)(39060400002)(476003)(55236004)(6636002)(6666003)(2906002)(6506007)(386003)(58126008)(53936002)(9686003)(103116003)(33896004)(8676002)(81166006)(81156014)(50466002)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB1342; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA4MDFNQjEzNDI7MjM6cXM2bDFDT2xSL214eU1PZm5yRXYrSDQ5?= =?utf-8?B?NHZyRjBjMDJ1eWdLWTBaNmFvUDg5bE9HT2xzdTY5MFZoNWRCRlZiK2xadkha?= =?utf-8?B?d3dYUXdzYW0vd3poSWlIYkRDK2JEOFNVQzAvT25BYkpMUFhDdEs5dzdIMWdL?= =?utf-8?B?WVhrVGQ0eXR6aldqdXZPR3Z0eENQTzY3QytqcmFkS2Vwc2Q2UGs3azZvQ0FR?= =?utf-8?B?YW44QlJ4SHovbDVQS2l1YW0za0thbWxCUCtnSWNmQllCc0U3dHkybGNtWHVG?= =?utf-8?B?UGx5WkQxUG1oZFczRjlwUFdEdFYvdEZIZmxkbzYxY0d2a0RPY0hLd1NVSlRM?= =?utf-8?B?SVlkVTBBOU1kWlN6Vm1MTk1aQlEvQU1EQXlyS2tLL0xiQnNlNHE3YUJrUWlO?= =?utf-8?B?MjFZUVU3K0NYY3dMcVI1WlEvWTU5WkJNVkZHa21JS0kxZDNYdzFOc0FUbXNO?= =?utf-8?B?MjQyY1ZDVnViYXovVkFMeGw1dUVWR0pZOXdHSVU0WHBLOUcvZ2pEYzFQcWxj?= =?utf-8?B?ODd6VVNMdFpGVHVFN0xnb1lGQmx4K0VrL2V4c0Q0eE52alhybDNKOVBZbGNC?= =?utf-8?B?eHJBYVhad2FnYVBhbFNmZnhWa2NPTUJrOHJEVWdjbGE4QTBnQkN5NUh6cyto?= =?utf-8?B?MTRLOHZoZzZ1UFBGdERrbjN6eDNvZGwxaE5HQ2g2SmZ6SUdCZWxuUjZTTmJz?= =?utf-8?B?R1M5L0pwSXBtS0w2dXZwU0thTUp0RDE4U2IvcHI2TkxWNDFKeDJpZ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2WrMzqwfpGrN3EdZKL8=; 24:6qeZkcmrVT8w4AD6yDaL25v/Hnmh2uFoHOoQi/s4fY8i5s0Qta3kZg89nG/6ISalLBjWbkG9dWlP5bEcc9aeQcA4bHm6Fg+fzofMejdqLP0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1342; 7:/WmpWPE6zfBk6hVof085AcfKXxDvl8F3F0fYTd9dUKsEIAlw6qmZBxf44xOVY/GMQVML024OepCRaawslWP6PJggtD+0beSqYeg7m04xo7UFGxm9TS5XbO8GY4uC6GyxBTDNKAVV2Z8LdVssKu9kuibZ/dVgVtYdc102KtYbs6MHEOMfo2Y3IH1Y+F6u1C5vYQDoZdcQ/BoCsRKBb35HRrSFQfLXANpZ3+rVftFxTg9AKfSeFvxkWyXGWjLzSk1A; 20:ww23Q/Ik8Q2bhW1KuugBuyVyofzIAAZ+QLCQPGf3lbgH6VMi96sNq55C9I02kHcB2xyhiHSAJxriDItKqFS4GuDuE9VoL5bmZBNDqo+3mh0HxCkFdQFFpvH1haFoF+xTyjx2HUjFS8hLw3hhTIC8+yoIJH9XKbMFJXydyXxe1oU= X-MS-Office365-Filtering-Correlation-Id: 1dd04962-e505-465d-0bcf-08d5b5a3ffb1 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2018 11:57:08.9069 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1dd04962-e505-465d-0bcf-08d5b5a3ffb1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1342 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 Next patch requires these defines are above their current position, so here they are moved to declarations. Signed-off-by: Kirill Tkhai --- mm/memcontrol.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index bde5819be340..3df3efa7ff40 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -233,6 +233,21 @@ enum res_type { /* Used for OOM nofiier */ #define OOM_CONTROL (0) +/* + * Iteration constructs for visiting all cgroups (under a tree). If + * loops are exited prematurely (break), mem_cgroup_iter_break() must + * be used for reference counting. + */ +#define for_each_mem_cgroup_tree(iter, root) \ + for (iter = mem_cgroup_iter(root, NULL, NULL); \ + iter != NULL; \ + iter = mem_cgroup_iter(root, iter, NULL)) + +#define for_each_mem_cgroup(iter) \ + for (iter = mem_cgroup_iter(NULL, NULL, NULL); \ + iter != NULL; \ + iter = mem_cgroup_iter(NULL, iter, NULL)) + /* Some nice accessors for the vmpressure. */ struct vmpressure *memcg_to_vmpressure(struct mem_cgroup *memcg) { @@ -867,21 +882,6 @@ static void invalidate_reclaim_iterators(struct mem_cgroup *dead_memcg) } } -/* - * Iteration constructs for visiting all cgroups (under a tree). If - * loops are exited prematurely (break), mem_cgroup_iter_break() must - * be used for reference counting. - */ -#define for_each_mem_cgroup_tree(iter, root) \ - for (iter = mem_cgroup_iter(root, NULL, NULL); \ - iter != NULL; \ - iter = mem_cgroup_iter(root, iter, NULL)) - -#define for_each_mem_cgroup(iter) \ - for (iter = mem_cgroup_iter(NULL, NULL, NULL); \ - iter != NULL; \ - iter = mem_cgroup_iter(NULL, iter, NULL)) - /** * mem_cgroup_scan_tasks - iterate over tasks of a memory cgroup hierarchy * @memcg: hierarchy root