Message ID | 153112547964.4097.16307061428829910984.stgit@localhost.localdomain (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 CA3F2603D7 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 9 Jul 2018 08:38:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B337B28A58 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 9 Jul 2018 08:38:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A712C28A59; Mon, 9 Jul 2018 08:38:12 +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 1E49528A5B for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 9 Jul 2018 08:38:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 099866B028C; Mon, 9 Jul 2018 04:38:11 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 020CE6B028E; Mon, 9 Jul 2018 04:38:10 -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 DB8736B028F; Mon, 9 Jul 2018 04:38:10 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by kanga.kvack.org (Postfix) with ESMTP id 735DE6B028C for <linux-mm@kvack.org>; Mon, 9 Jul 2018 04:38:10 -0400 (EDT) Received: by mail-ed1-f72.google.com with SMTP id t11-v6so7004243edq.1 for <linux-mm@kvack.org>; Mon, 09 Jul 2018 01:38:10 -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=y1hK7Awiu67JMCzeHuPcwbgMi2b3Go7RVSSEhIrcM5g=; b=S7/7EN6v9HNjbWh7tx7fnNTrtiJV3+4QhQgo3yUb0MWh+oiQm5bvV0HL+FrZhBlN20 35OUEt0N8f5uzXjUT31ojFiTGlFBPHKybpUdF2qwW+BI4yPUopEvN40Tur2srdx0/FoX z9lhw/0zK9Ehtq5q4jPTB0+1jW+YwisWIgPsGd/DygSDVHfZb+3p2kllJKwZmPC7IbaR E+zpctveCJhs/+ApH/ENmglU0poRps1KT1yw+rKHVJcEqveXy6JkmBEwLMr3/GqkinfO jE/Gju16haeyW2YRexz2BymRNZWb677D5tiX0jiBk5nnJcl+/aoSnffRlNZPgtv2rbbP G0QA== X-Gm-Message-State: APt69E0NpBLs1dUsOLvqMgNlpBZ4h1iWapNdxwOShYXLGRQy+xImB40v q149acSDpNMAJzSukkHVIbz/6jRY3lr0e9F+VDgq67pr/2oc71jobzLSLKkd2ZqvrpM+dlA5s2E 5qRSBrjHktUY9sXC8OvARhlDCV4/YR6/lflos0SV54scbnZOp6ctY/F5MBIzkyrAhuw== X-Received: by 2002:a50:d759:: with SMTP id i25-v6mr21702689edj.260.1531125490029; Mon, 09 Jul 2018 01:38:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd8M8OYpO3lX7KeCq1u1+mWtJ9FKqGN4zVX6UFSXB3ZrZwycUFK9SmXSmRbWnN8CwtRh6qp X-Received: by 2002:a50:d759:: with SMTP id i25-v6mr21702639edj.260.1531125489213; Mon, 09 Jul 2018 01:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531125489; cv=none; d=google.com; s=arc-20160816; b=vzIBdXLrZN2lApgviFnIzTqHnkbxYhUW6kHKR4n88iewkGFQF+713V6BPvCRi3PtUV cOkF1UEL0etJfw/47nW5RbT1MQjTFgJr0DwjsE37KZT/TpHaendBvcYhPdwKOBGASCgv yXWLBGB1ZsZLKubGhRDRE5kVuZIpohMoB+29bmW31FjrMoi6trIFv6qIZrr2meF5k+tF Rhj2kLQEdOY2RB9LHFc+PQ7qXXZ2IAAG/DOATrYgjPhDHRvx/DGnn390JgPSw8WddI8E bvQu2wWjiTfAnyakGfAqdOdwE5jifls3GjJlnc84x0Zm0N7pa938nDJanunbVuZ+/1dz +1hA== 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=y1hK7Awiu67JMCzeHuPcwbgMi2b3Go7RVSSEhIrcM5g=; b=TJ0MRadDZElCPufCwcHT1nZsB61miL+oCqtQwYiKAguOVPQN9VKJifP5xaX3pImR7+ Dk4viD2RgEINBrbHRPLq0Zqib+r1+8cg7uxd4sRni5Wh145SZPj+prWT+d2FxyWD+OXu eDCHkuweUfR1h/wcsdnvi/u+4z/QzxogVoz8V7EhmvBqVqL/ftoaQNzhP9lVcme7EUwg 9qwsk4im3MutiSVJ2eKBCsXAm3HDc7pkmt4uFiWjkfvnxmpuOQ/Wul9ADK402dN5x65M ChtBgV0cB98mKel8yzVeTbEvxv+FyMlPTnJPDY2Tzix+XWT0NRmCRctO/ElWuKV1SeoS Qn5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=cuTMXhag; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.0.104 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00104.outbound.protection.outlook.com. [40.107.0.104]) by mx.google.com with ESMTPS id j10-v6si4017188edn.439.2018.07.09.01.38.09 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Jul 2018 01:38:09 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.0.104 as permitted sender) client-ip=40.107.0.104; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=cuTMXhag; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.0.104 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:X-MS-Exchange-SenderADCheck; bh=y1hK7Awiu67JMCzeHuPcwbgMi2b3Go7RVSSEhIrcM5g=; b=cuTMXhag6aYgbss2fKZV4rWnocO50yiBxWSJTKZ1mwEJm3M7+LRscKv5GmB/heW5JOIL8O27gV6dFNw24VnrApPZPq53STSjoz8BO0C7GmeOBQ07N0TYZAEtouvUOZql4Ttpw7td47RBZO1k39iYxvny1Rnx2LIAZvYk/Q2YHfg= Received: from localhost.localdomain (185.231.240.5) by HE1PR0801MB1340.eurprd08.prod.outlook.com (2603:10a6:3:3a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.20; Mon, 9 Jul 2018 08:38:02 +0000 Subject: [PATCH v9 04/17] memcg: Move up for_each_mem_cgroup{, _tree} defines From: Kirill Tkhai <ktkhai@virtuozzo.com> To: vdavydov.dev@gmail.com, shakeelb@google.com, viro@zeniv.linux.org.uk, hannes@cmpxchg.org, mhocko@kernel.org, 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, akpm@linux-foundation.org, ktkhai@virtuozzo.com Date: Mon, 09 Jul 2018 11:37:59 +0300 Message-ID: <153112547964.4097.16307061428829910984.stgit@localhost.localdomain> In-Reply-To: <153112469064.4097.2581798353485457328.stgit@localhost.localdomain> References: <153112469064.4097.2581798353485457328.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [185.231.240.5] X-ClientProxiedBy: AM5PR0701CA0015.eurprd07.prod.outlook.com (2603:10a6:203:51::25) To HE1PR0801MB1340.eurprd08.prod.outlook.com (2603:10a6:3:3a::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e8f33e97-f062-4709-cc04-08d5e5774a1a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:HE1PR0801MB1340; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1340; 3:iEg67L2BQKbPVamEKV2nEGWhy3kJlN7sJwswIgYegqCunJY9p0XOEPd6ZdhKP5Ngxja0NJh+f85lHDAh53SN/5or+OxO12JvbBkS+XyCIqaMPzHYXLhmVkNlOtx3OnIR1kx7lcWgAoqf1b8UNRUX3bq0/eTUWMio7W1/11kOd78H0tgCgIEMrSUD/XzwMchD6cBWRl0R4mFWT9DdyCzENDeIENtka2TmrVjD0lNvED73iS8w/dSiR7B4+paOVJ+l; 25:OH8MUPQ/02riB7+Lj5nEB7KsE3lFPEHjRScfw8umB0COXJwEpitqdvHSLdgzC13CyfEh4OeaTQ8FqtrfYAMd7OlKJIwOazTH98cKCt7sWhtnb3xHPDSq+nW2TatzIDY8yDQkCuVusuGsZFFeo2N/pC1iL6jDqCutuEk89NOZLu9/vvQIRreZwZyQbGR7WBfo+NdvpXlLF7SwW+8gKywOMSsK7N82Aclf6JB4V0U/owPM98+QbtnvsRlxT9x8gsnVQEcPdinja7jyGAboexWG77n97iAArb824bt96dAAlUuurz8La2a1WDQirlN3QBOd9z6uy/NvM+DC5EsW2ZX8lg==; 31:ozB7TlBkpsy68/pKtSVG0rgg2L7MiO4kBW0uNJ+QtPiPafgvp+t71z0PlvXy25sQA53cd0yE1O6NM5HW3x18cIuaGmQsWQMMsBdJm8viDfUA1RbIOe3fXvMSSYQScPh9zRtZ+yWDrQjG4SVUCl6EPJIx08DNpomC3eNu1l123epwEJIOokuiTKsFBeZjNw/z0hCaqRZ18WOTKyzF8DxOitp4WYV6PucGc6LEjyg0iNQ= X-MS-TrafficTypeDiagnostic: HE1PR0801MB1340: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1340; 20:OP42gz8nJ+4jjC4jZ8tFjWbZMxrXL3z4zKgRf2aBEw17u7sn2oLiNF5mfJPkQIR4ZuxuvdYjac6nY9f78gv/ENaK+zUPmImUrT/TLBVQpDjYtGkZf6dt/UrRAUMN0E0Z0xZtWcIxA9tRSZz8jd1RvAneE0W49EUE+5TXSZB+2FaojxP+c8VJ0GMNjI29DsDNqSDjldXP12HTM5pWZCyBBhlkKazvi1duUN9VtqCtFEn5tXJsfG5lusnIPHlcLTfB+CAwvukkq5EUelYNMkACNt3+d7YYzCWbD7qjlQz5RH49EIlY74knLtzIMWzAhDzevF/E3PX2GeEGkvUwIJKhcQPYVuo0btEnqVkMdVMOu+DXdtRH4jJWVPagKtbJv9ttDOvhU+TR+7xs0VyBGa8AgAmOxcTWXnYKqeE/DCdSBCnGfMjoytBZP7T9PjmlRrJDAUOTCnfYoJXpygeqmkls6e2kA8/LnsM0mzsSsyYJ1P9fMGgJebzEWPoXK/noZVWU; 4:R5+wIdK+FEa1JEbxJ3LSVyQ+C7dgWAbg6wn9z3JuMM1muyqPgn4pVBOFsW/Qp3DTtv38fJm4y6bcpdMtKg8Ik6Zx0VPIABqcxSKxx2cBU5/2iVcjmgATMKIbLe98z7ne1O0njesuX1etZCnZXGa8LOhvoc38OqURRp8C+yNDgigZ2q3YXqs+GHjDBzJ3oKrNJKuPy+o5icxxvZyZ0Ej/PytF2mZJ3Vvq3nny+EC1iDoAZDaQEUHI/XDRDsEKFeyZH2/HZoc/n09X50TRwq2ApigsSQiCf7qeVDp1EQT1Seqg9QTEEcF0PruJ3FCun99nAPUUW3/QHkDG0ml2+4Vk8Vogo6WhMz3yr/LUmBqZmjN3p6lz9oR2JGzu3Lb7ZUM6 X-Microsoft-Antispam-PRVS: <HE1PR0801MB1340914C0D7DAF6517D0B10ACD440@HE1PR0801MB1340.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(85827821059158)(211936372134217)(153496737603132); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:HE1PR0801MB1340; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0801MB1340; X-Forefront-PRVS: 07283408BE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(136003)(396003)(366004)(376002)(346002)(39840400004)(189003)(199004)(86362001)(105586002)(61506002)(66066001)(316002)(55016002)(575784001)(58126008)(478600001)(53936002)(47776003)(39060400002)(9686003)(25786009)(68736007)(106356001)(2906002)(23676004)(2486003)(305945005)(7696005)(26005)(103116003)(33896004)(486006)(3846002)(186003)(16526019)(956004)(230700001)(50466002)(11346002)(97736004)(6666003)(6116002)(7736002)(76176011)(81156014)(52116002)(81166006)(8936002)(446003)(6506007)(386003)(476003)(8676002)(7416002)(5660300001)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0801MB1340; 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?MTtIRTFQUjA4MDFNQjEzNDA7MjM6VlYyUzFTc0trUis0aURmQVF4R2JwQmxB?= =?utf-8?B?ZVJoMVlldENmTCt5QU9EOHhEcm1iTVpBNG94WWVZZXJlalRyNlJyakZmTjZa?= =?utf-8?B?NCtCQk45MFJXMnFRbnZXQktHMy9Odzh0UEljTk82ckF0QktkdzdVTXpNL0xW?= =?utf-8?B?Rm4zZmFVTWhFdFhoTlBNUCtaUk12YVZPdGNKS1plTlVFSkpCdkZ3a3dxbVBx?= =?utf-8?B?c1ZocElxc21yWXNQWGNaUk9EZjNZTU1LMnV0ZWlLVXE1MmxDVGhzaE5Mdi9w?= =?utf-8?B?TWsxdXdFZk9nMUxhVlRKNHR6OWNONEJVTTZMdGxGbU9pUWh1V0pVc0ZBdVJ3?= =?utf-8?B?a2QvRUl5a29ySVhka2tLN2c5ckRYaGpQaUZNTUVpWVFGL3FHRW4yd1BOV2x3?= =?utf-8?B?SWtSNHcrNmNyQ1F0NkppL09ZR2JXUnRDVjBoY2FKQ1Z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NKi77g5b2kGBgRP4OSSjEycwDJRIJs70Oe0Rkeq5nuQXvqOm/y5Vv8RM3ZGdj2hKueX42EOiV3NrGt8ikg= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2018 08:38:02.7524 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e8f33e97-f062-4709-cc04-08d5e5774a1a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1340 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 09517a0da93a..4e81f056ca60 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) { @@ -862,21 +877,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