From patchwork Tue May 22 10:07:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Tkhai X-Patchwork-Id: 10417843 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 195236016C for ; Tue, 22 May 2018 10:08:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0949E26E74 for ; Tue, 22 May 2018 10:08:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1A1727F86; Tue, 22 May 2018 10:08:11 +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 8120E26E74 for ; Tue, 22 May 2018 10:08:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1E7966B000D; Tue, 22 May 2018 06:08:06 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 174836B000E; Tue, 22 May 2018 06:08:06 -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 F08776B0010; Tue, 22 May 2018 06:08:05 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg0-f70.google.com (mail-pg0-f70.google.com [74.125.83.70]) by kanga.kvack.org (Postfix) with ESMTP id 9D50A6B000D for ; Tue, 22 May 2018 06:08:05 -0400 (EDT) Received: by mail-pg0-f70.google.com with SMTP id f5-v6so5346373pgq.19 for ; Tue, 22 May 2018 03:08:05 -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=V7UajPLfqBIdCuRv3wX04KSmpgxOMkdk2dxQh+xgBgIws0UYva66fTHGF4d2zAFzSa /j8cwj7X/zyfr7CsmqfcWvN95PBB8aAzM+ZdRv3sord0yfCUSXNqkS0ld2E/siTfPb1K 423nJe+3WfLrzkBWxkN+qpvj6EiWL9b+f3Yuqxpb2eej+S98YgE2F5rfHoRUjQy/hJxy 18T/wkUbFpNAARs7ZVp1Bca/8K+VAOO2rwnZ0cLo/OcbTELH9+ToYIQfzxKNRwyZV5yG YhSqVuji4ec2XqVA0DmP4JPy4BgbRnaXvNC/7BhDsPy/HCzKIzTXtfweKBU2Qqa2RK1K 71mg== X-Gm-Message-State: ALKqPweBFRMAhA8tPootwAQaWhgfq5sLLQxM6WVZ1Xi2aWKEWB75kUCu u3n3Es2y3qExU2gpWHsFcbeXw1PSPrWMhGH5FlkCYIUS0szWDh29AOLmUKPdTNymOi12dOltKYn qdsjdd9Qr3X3ZAXuqQtWBLA5UBPV4/ws0QFDQ+wkrTXHZ87/NUMyrdnoJ4+tNve8zMQ== X-Received: by 2002:a17:902:6b45:: with SMTP id g5-v6mr24392691plt.67.1526983685341; Tue, 22 May 2018 03:08:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp3eDoNXKBuj8Ia14Hz0FEU3MaqaKifdmiFg/YKdmwOyUN843uT+Cqn0ZvzBLtvOkltoYpY X-Received: by 2002:a17:902:6b45:: with SMTP id g5-v6mr24392641plt.67.1526983684635; Tue, 22 May 2018 03:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526983684; cv=none; d=google.com; s=arc-20160816; b=njxfbeP4yn7eOjUU+XjClfynHl81MvvRmTvUz66Yv8Y4vJ8OueC2b2m4zRs/MNhrP6 jazpdFUuL6hb16MNP3X8wpXsXLkuQqJ53k8PYxJjWtYX9WWFV+mRDbeTLGyXDfXlQbNE CyxYg30MiQt9ftppf1Ui/JCoGit7EURRCY3mWqc5tmclJ5+dh5DzVQi2agdIJpy2uZaM IYDqvJHOPQWO2vW4MsEaMW2GJDzwrEDBBKIAZeO+ho8p0ncXv0kcls7v+x36zcRpD46i p9skJUOdesEYmiyiKCA1+rQSgY6yebAYhCIenYkGUEiXQA2jf+R32XN0mVnqcwaYPQvf FsUA== 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=F999/jtH15Ryc+0kW+o0JVm0/HKFaVTMGMcTld2VIp3gOF7IvG/eIErKwiEN21ywL5 QqaGma1KONbK5BPqlLWoerpYVcqbt0chvOeYnvf4NDXLQ+Vss8pmfgQ5RJHXuS+JCEwQ qgeEB2AIITA8EfPQaXbGKdPjOdXjmhq0dAS5VDfPa/+Y2euqbh2ThzW6oAm+g+MCMgQE 4fSrfPNoU+Bsp3bccxbx4SXG9RMpR3hWyKsx9Plwag329tcGABsGeG4wAF2/tAjK8Kl5 0x1ZKlaw7xmqLE8LfQYRCY6AiQbw4XHLnNPn/AUWGe5qTn2n/w1I0JHkvKXXb8dkUlgc piOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=UPAnMQEz; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.119 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-ve1eur01on0119.outbound.protection.outlook.com. [104.47.1.119]) by mx.google.com with ESMTPS id a66-v6si16935978pfb.81.2018.05.22.03.08.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 May 2018 03:08:04 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.119 as permitted sender) client-ip=104.47.1.119; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=UPAnMQEz; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.119 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=UPAnMQEzyYryXlZ1RHP/Bo4EEZx17tyC9yVsKnDenSU5kzRNk28v74WN+ChcdY6Rfmf8F9Sc1Q2VswMoZ57EmH6kln1SB5z3pdpwFUvxMiDIqSAFAuF1bg2eTVGovnZW1tItOOF64BbUWF8+X1hAWNoGW+HOmKgobHCssdp3wQU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by DB6PR0801MB1335.eurprd08.prod.outlook.com (2603:10a6:4:b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Tue, 22 May 2018 10:07:57 +0000 Subject: [PATCH v7 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: Tue, 22 May 2018 13:07:55 +0300 Message-ID: <152698367509.3393.9093345957882703581.stgit@localhost.localdomain> In-Reply-To: <152698356466.3393.5351712806709424140.stgit@localhost.localdomain> References: <152698356466.3393.5351712806709424140.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: AM5PR0201CA0004.eurprd02.prod.outlook.com (2603:10a6:203:3d::14) To DB6PR0801MB1335.eurprd08.prod.outlook.com (2603:10a6:4:b::7) 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:DB6PR0801MB1335; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1335; 3:mnphus1yJIu25Cbwhc8CKVT9RJMhjREqnJ54kJqA8byhd+ZVWOoVaaP1+ILLyiZUzPxLluNcx7F2g52vtmf3MRRSnuZ4WRZQqlk+6wt9wMxSFXjPZRZDR+QCF8rqCNdet1BaSHlFQLjK+p+WK6WZwangJo0yujEjmfVipAomrENbAGkuYqLjuUvhqA62p0KmsjGbfw7W9LDoLXDyY+qPpiL2h4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dgeiGO7OwVimi/t8X5T3XCgk7x0HcanHix1EiRGYWH+Y3qUsuhoob4DiC8Okhvj+hYR6Ipf/so07OQ6UJuGOnraIQfvKn+z6TBZRZnWZ8Z1edvJhAIxMJxJe1EUrPMUhUfa8; 4:BQ4XHFfCer2aJooEojc4E/wySzLT9piSPl+RHXdeIhl2GsT1ch5Wwxb1EY85M1W5e5/FwACeMaFbDpxws+EcVa4qU7Jprg5+UkvYc3u08e1nwYdgQN4P5Nu2hYTO0NAPBjRKOUVtL3PLW++sulS0YHNM6LjJU/Dnf+TnbnyDxYm8t0sK/PxYFFviflNqMzExnlCUuUDW77v+OuRobLYJBfB0ZTEJDQrxCKH7R44EPIIE6zd39GQ5NRL95gPk8R86mpJ3Zg8Ikj0HwgEwGoLyrw== 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)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:DB6PR0801MB1335; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0801MB1335; X-Forefront-PRVS: 0680FADD48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(366004)(39380400002)(376002)(346002)(396003)(39850400004)(189003)(199004)(25786009)(50466002)(47776003)(86362001)(26005)(478600001)(97736004)(2906002)(2486003)(186003)(6636002)(16526019)(76176011)(9686003)(55016002)(61506002)(66066001)(39060400002)(53936002)(5660300001)(7416002)(230700001)(386003)(305945005)(55236004)(33896004)(3846002)(6116002)(68736007)(446003)(11346002)(6506007)(476003)(956004)(8936002)(7736002)(58126008)(7696005)(52116002)(486006)(103116003)(105586002)(81166006)(106356001)(8676002)(316002)(81156014)(23676004)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0801MB1335; 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?MTtEQjZQUjA4MDFNQjEzMzU7MjM6YVlSbnNFRkx6K2lKcytBQ1dqRjJhbzVH?= =?utf-8?B?dHdTaC80ajY4TFZINmg1bmlhdXZJWjIwbUNMTWpaU05la0xiZFVQRzdERzhw?= =?utf-8?B?MkU2WDJESkw2TTY5aENCM1J4Z2xEQlFQcmE0cjA3dDJxY2VEaVJBc3VOaU11?= =?utf-8?B?TlFFQy9YVi9DMXdaaExyZ2tKUmJoSGtrVlE2ZkhEbEF1OVREVnloeWdRcG15?= =?utf-8?B?SCt5ZGNHeHdpYkZJNndJdXo5YVU3VDc4THM1Z0pscWl0SGxzdGFlaERnNTlM?= =?utf-8?B?MlRjaFA2UEM3b0VNbE9GL3NXeWZvZGxtdzM2MEUyTGFHL2FwWVFIbFZtRUZw?= =?utf-8?B?MWVSU0RYbXNsU05ZVTNUVGh2VmlJSTY5NFJKQ2NIbFJZSkxlZ3ZQdi9PbTVY?= =?utf-8?B?ZjJaWnFjSGZPdlN0ZXNvWExCN1NQQ2puZU5FWHc0cGhjZW9WUHRSVmFxSmY2?= =?utf-8?B?MkxRdldLOVB0YkN2UGhwQlZ1aEEyZDFYd0VrSkp6WGJUZXdWQzF6SVhZTEps?= =?utf-8?B?djJkVmtCYUFlbThqYmhzV0dXQ24rMkdCbmxCejBrcFpzcUY1OE5Oa3ppSStn?= =?utf-8?B?bW9wRnNyOTJLN2l6ZUZYSzFOK1lOdFdOSGJMZ0NXRXZBeVh4M0w1ak5IQXV4?= =?utf-8?B?bE1UZmo3ekVvSDhaVld4UDhqejFTSi9OcHlPcDN3RmhZTnhPN0Y0UmpvUGlx?= =?utf-8?B?Q0tud0tH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a60otx8BGRk=; 24:Giam0LJWyjW9o0acfve1hVCP1YWMuJmt10+zsLP/0sYfccQeWFoOZYHDLtHU+Er4d2zO2aT0AEPGSa0zFAIcKpRGEGwVFWQ+IdmErW31aSs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1335; 7:WOx1SPAd2o4uGTMXj205QcXkvrlgO8fih6GT05HXHjtVnRivO+vwFOvu5DZzv1nezuqMR1DaqnivcrjmMq5pUCjpVP1s18Vb1yLfAg2VPOA9JM9GTJ6CGnlTG1z386kWnz9ocrNSA2qnvE5ePzbHf88Hmqq/TE6t2XTUAb/UFZz6/r2wT/RCe0mHJW/6I5B2L3KzLG3kvDGgGZ0QdF+1XWb1wIJJ+gTQdlzzQLQuEIJNTgsv/OUnWNWg2XOQRtzA; 20:prcy7ooxWKu77xrpX6WJAh7VRH/GIteLwC6MwdquJ1jw/J/cwAaeJ3AfZoYBXmhtodAewCjDEYyNC9467hyx2AOUwpw8qIKFWNi/8675rMyuSY4F82NaJn1Jiqb49Y9AdwLVkN0PZyGC/1py4gjUjdoPw0IY6OnVC/Vs6qtzl54= X-MS-Office365-Filtering-Correlation-Id: 3d265698-d016-4b10-fe63-08d5bfcbe598 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2018 10:07:57.6098 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3d265698-d016-4b10-fe63-08d5bfcbe598 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1335 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