From patchwork Fri May 18 08:42:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Tkhai X-Patchwork-Id: 10408757 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 024DA60230 for ; Fri, 18 May 2018 08:42:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5DA228707 for ; Fri, 18 May 2018 08:42:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9FB528885; Fri, 18 May 2018 08:42:37 +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 362EC28707 for ; Fri, 18 May 2018 08:42:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 19DC46B05A6; Fri, 18 May 2018 04:42:36 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 14F1A6B05A7; Fri, 18 May 2018 04:42:36 -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 F3B216B05A8; Fri, 18 May 2018 04:42:35 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg0-f72.google.com (mail-pg0-f72.google.com [74.125.83.72]) by kanga.kvack.org (Postfix) with ESMTP id B49D86B05A6 for ; Fri, 18 May 2018 04:42:35 -0400 (EDT) Received: by mail-pg0-f72.google.com with SMTP id v26-v6so2662734pgc.14 for ; Fri, 18 May 2018 01:42:35 -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=UZ0QN3U3mn3AEHQuc1AoNfRGEEMzOSFCs8YFu4fZFZw=; b=hAbxbb2fApcSKdppqcdapD8fSvCfPFFgUfFGYucXjc45o1HEhoF6QjQbXaK9eoAI4G wCqA6OjXqbZpKrYS4D9zvehzT4TelwBPO+qfqSXfaTaLyjx7MwIBFbrsL+QPSn/xjCYJ J5UEw/DOeDoaemc6A/1yO6worDCC3qlr2z9PWUebWbskFEZJP59R0qtKFuNFHP4ikZd9 3SKNh6VcgF4ZWBWQ/ZoX8gAl2XUF8/VMQtFr01ubA1X1eTtfdCk5w9ZvJBWuk5+cHKai yy4+l1q33UVU3CXn5mHzpo/qW4mUwn8h65WzsFjpz/NCdsD6/n6PeqLKGeaxGwNgJeM/ YVQA== X-Gm-Message-State: ALKqPwcknceNJPjjcpjBRccQITE7Q80+2x7m8U+JsefyWqqULOGDltit oBZagh1A9NXTcpTEGsvKnSOF3OONrSBe56W6HtZZ6HUG6z97g43VMVxg7xv2dwUgh38oxgz/+64 wptmfr1EPaq6TSE2/9S0MtyoLV9pFQ7VlT+sGEilraCtameoBuu5Suww8f/H1RF9+0g== X-Received: by 2002:a17:902:595e:: with SMTP id e30-v6mr8542514plj.233.1526632955427; Fri, 18 May 2018 01:42:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoGfZXZbY1G01fjBvr27aq9+xhjy2VzgdKK1sYHv6en8uWkl5nKCOYuK67FYfAH6NSHKuYd X-Received: by 2002:a17:902:595e:: with SMTP id e30-v6mr8542483plj.233.1526632954804; Fri, 18 May 2018 01:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526632954; cv=none; d=google.com; s=arc-20160816; b=bIptKo64L9LFQVIfVrwo7zqO0ZLrMS7zbdkNfHzm/AEUFbU4Td1go7WN0iwl07Rb3h cD6SJCoXyrZTRaoJ482sfXjJqx5I6cOj8ymAUPMt0syRJuU1p0GENsJBFM3bf+B3U9Yp PspcQ/saxwjniRA5yNo+it3dJ2gYb2EILof/eXUO1ZeDHKm1JPH9+BWWvsHmCVmM9qcu OGhj9wCtAuAKpHHlAznK59jcb/KxGqzvMf9NXNbuqlWFlh0eax0nonxXb4cCDTxe4+yo dw9f5KAeINDfIiionU/jr91YUs1C6RFPoDA+CeC3uJAPcaNvAYR3q7LEmqItPi2XEy6p JFug== 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=UZ0QN3U3mn3AEHQuc1AoNfRGEEMzOSFCs8YFu4fZFZw=; b=iESFHV756KQ6Iu+B2Tzb8GAEB3kIMiC9oSOul2SGeU+ZDFMTmAJYUjfQK5rDx2KNc2 x4mj8w/mkeNF6649MqD3m8DiwS/IU1GH8LSx9Xmg+T1ffxRKg6UnDBKMGfRdt+X/S8y9 5KNDMhfrYSDBoKgzVcQXnTF9CIUxDfGU3B2YZ8/tRIBAjrG7PBrN0vmpNnapzCYbTqPQ 1C4ZNYhs75HB6M1OOYlUWBBDI5c92gTSt77keu/shpVR7A2s7Shiiga1dIKQr4xXruUA 7JCS2rpgwg6fXbwjvRfRTkqRGITc+WYfxIgN/T431SuowmCqQ2SvqXNSTsxTFUS8iMyg pEEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=L95c9mad; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.139 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0139.outbound.protection.outlook.com. [104.47.1.139]) by mx.google.com with ESMTPS id b197-v6si607275pga.51.2018.05.18.01.42.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 May 2018 01:42:34 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.139 as permitted sender) client-ip=104.47.1.139; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=L95c9mad; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.139 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=UZ0QN3U3mn3AEHQuc1AoNfRGEEMzOSFCs8YFu4fZFZw=; b=L95c9madZQ71WfjKaBxM9wOQC2L19OzAARLcP2CBITXzqh06w7nzmFRWbHZUHAT2hTSLeqA3sBHGDaI1Ey84jApyfeqzdnF5JBHToP7KHc0X4S91ZC58reMoaoA3dVbtWAiB93fvwwgs4WS852kIdnf5RKZI5Ldh07+7RWzjUCI= 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.776.11; Fri, 18 May 2018 08:42:29 +0000 Subject: [PATCH v6 04/17] 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: Fri, 18 May 2018 11:42:21 +0300 Message-ID: <152663294106.5308.16116088688197815775.stgit@localhost.localdomain> In-Reply-To: <152663268383.5308.8660992135988724014.stgit@localhost.localdomain> References: <152663268383.5308.8660992135988724014.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0301CA0010.eurprd03.prod.outlook.com (2603:10a6:3:76::20) 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)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0801MB1342; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1342; 3:Z5jli/5B/s1+M21LW/Z5e6t7cz50MnkqznJkEr/LnVHsBGMDuInCtpdqPqTmbfhGrYnhLJYkzdOip6BmlLeq5x39+pu2txyJFWv2Ekaz+n7jdwAYmm4lcwH8mqAIdi4iEADvqmpypdqhDrDVdfJKxYYvUhc9TdCDajKn/fsSkmLN7/Qx3uHb4FbhRF32H9myLFkjsV9++e48g8/UtdXNNEex4rXcWxJbmi7l+qf72zJiUC6rRH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hkHSG2CySkb2Ds6wjCwTTNGpJNFkuP9C9e0ScHPtZSfE3j0ZJnEQ1+C00osAl2b4kCFPSbtuO3kVODQc9Ll2UnwhbxXcbqv3nMQm/knLd; 4:K4khYEzf+kxG+gy4b3AbD9Yby9fS/x28reMitBSEJTadFTOX3zlFvaJs8Rf29a9DysmX8YIDyC/nlawV8sJICJpqTK6jZ8WQHpsr/fDbLGWqEhZrUYF+QgWxDqCrYEmZJZnCJUeT+J72GnGs4tcyIaQ77hmgLCRaMOnSB34x9V8alcKUXpQZ6IpsSzGGhWy8xOFSfSx3mxPEMdatNzljeIee25eu4Sj4hue8MydLLuS+4+3oD27TdEuKiRWwWO+ohIzvclmJHvkOj6MjgOi9kw== 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)(3002001)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR0801MB1342; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1342; X-Forefront-PRVS: 0676F530A9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(366004)(39850400004)(396003)(39380400002)(376002)(346002)(189003)(199004)(11346002)(23676004)(8936002)(7736002)(476003)(8676002)(81156014)(81166006)(105586002)(106356001)(50466002)(2486003)(446003)(230700001)(39060400002)(25786009)(2906002)(956004)(103116003)(486006)(6636002)(55236004)(7416002)(76176011)(5660300001)(52116002)(33896004)(6666003)(16526019)(186003)(6506007)(386003)(478600001)(26005)(7696005)(68736007)(316002)(58126008)(97736004)(47776003)(305945005)(86362001)(66066001)(61506002)(6116002)(3846002)(53936002)(9686003)(55016002)(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?MTtWSTFQUjA4MDFNQjEzNDI7MjM6UnduU1pjTnQwdVRRM3BTYWJSUGdNNFZZ?= =?utf-8?B?aGZYdlJTQnR6QzBJNVdlblRLajkrQTNjMnVxdGhiVTMweEtlU2RFNHVic3Rz?= =?utf-8?B?ZVB1OWpVQnRDRHRLcDZIRjhJY1VOWFZ3OXdiTDZ2YUZIVTdtSFZGaHRQWmov?= =?utf-8?B?SU9qT2FQdmlDd1dhQWpxS1R4WWhxY2s4T29GdkFmRXlqTVF0RlZENTdLQWlN?= =?utf-8?B?NEhxSkxGSzhyUkxUUFo1a2NJK0dxdC81SnFrSXJTclRUaWhza2tSNE1COHZl?= =?utf-8?B?dkFySjBCaFV0UFczcTZhMFJXUmZYSllHNFdrRkVneHgvMjhiYUE5NHNNSXlx?= =?utf-8?B?dERSRm9PNUxUb3U3VDE4endEaXhZeUIyWTA4eFNyRlh1YlNQckx6VnJKeXpM?= =?utf-8?B?TGZnYzBPOXZtbjRvN2RnSUZxLzNKWkRSU2JYV2wxT041K1pOcEtVVE80cjg0?= =?utf-8?B?cVIrWC9FWEpSckVIMWN4TkJUTjNadUN2WWZWWUNYV2Rmd2RHejJkQjFnR2w5?= =?utf-8?B?WEd5SnBHTFJod3RGNUhQUlhadGlmOExGK2EvSkhrT3pqY3gyZnZ4WUw0VUFX?= =?utf-8?B?c04wTzNkRDFZaFBYSjJObkdOQ3d4TXU2NlNyTmVRTFJTK3orOENFMEZNRkQx?= =?utf-8?B?NVlBSnhJdkhNOCtraUFhdUNKUFQvQlpkcUNiV2hYbHMxOXNWR3dGREdwMWg2?= =?utf-8?B?c2xpR1F6NER0YUJ1ekNFNzZnVEh6QzFMMkZtNW05QzAwc1lmWFp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KsYTl2R7rtyjgWzQ3PF8/s2NTo4e54Lh6hwU=; 24:JvwsPHIqZbdbGYyKMp7JEknrxbzD3rZ5z5oGcRimymQXq7NZ4/S0uFTF6C27JhgGhEhiXuDOADDaDwIxJDjVKh7HtStI9eI54bG/bS3WZ7Y= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1342; 7:oujPvQfnKEnFd7SpG8cnJZzC0fN3nmUEEGVqdK58kroQZvzDaEwycKp15Qly2c9fv51CMdqSyUPBg9Vm92NnM/N2UEuUHvaC+HOBGzEvGxocYe3tFQJ6o6q4v8bMJKDf2JWRDlRBGt+oJmWMntZjc4U1ByLZs0/Ih/SzkFmIMSmn1aew+71v9ArV53uspvuH6rBJcInGCsVpG3L4pveFbiGOZLsca4rcCxPpDS8cfUrkTMQ/SrZY1s9FnUzgGiQg; 20:r+xXxTzmvKxmDMvkmn4gNPkYqblT3DuVYlnSIedCiOBkzCv9Ukoa7ZqDa0dW9z3xJ6jTquf47Y/LVN2evkevZLlM+Twa++e1boGulneJiXmQJ9kr6kvmnb8uyk1bttkemdO/G1gI6cETera/lZ5hM5uk4mL/fnW6uphu0jjcBFY= X-MS-Office365-Filtering-Correlation-Id: 6a9dbf17-265a-47be-6991-08d5bc9b4b98 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2018 08:42:29.7649 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6a9dbf17-265a-47be-6991-08d5bc9b4b98 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 fc67e43849eb..023a1e9c900e 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