Message ID | 152594594768.22949.2451669820790556832.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 A893E60153 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 10 May 2018 09:52:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9577326E54 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 10 May 2018 09:52:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8966E289C2; Thu, 10 May 2018 09:52:38 +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 C171426E54 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 10 May 2018 09:52:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BAF206B05DB; Thu, 10 May 2018 05:52:36 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id B59D56B05DD; Thu, 10 May 2018 05:52: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 9D4DF6B05DE; Thu, 10 May 2018 05:52:36 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-it0-f71.google.com (mail-it0-f71.google.com [209.85.214.71]) by kanga.kvack.org (Postfix) with ESMTP id 708CA6B05DB for <linux-mm@kvack.org>; Thu, 10 May 2018 05:52:36 -0400 (EDT) Received: by mail-it0-f71.google.com with SMTP id 6-v6so1677723itl.6 for <linux-mm@kvack.org>; Thu, 10 May 2018 02:52:36 -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=LMgpqU/VHjMK1k0UEKaWRiWnsDtgT86xi7XgXmNxOdlRMbnUFyxvxr05GnUpE/ljX9 9ZSkQTSZLRUE1C4Fk/CR40xs8a7uwQEii2T1s1EpGUpuXVq1AEhSoZGDFkn+GMuBm3XJ xmjAb9BPxLkI7qAO9SrR27Hg/xzkR2ec3/480iggVaHFE8+JOruYvcBzDnkjmRuFZocC wCpBbeeGXtZfjsDqffMRdKtBKaSw358Udo8oxqK7b5608DgpysypVsZLu27IPQaXIhvV uT1K3L8HIBWUq8bHyKLrdM0WjpCrUI8olvUavHfrmSOXNJQyhMCmTFTQANsF2F244H+J Gp5Q== X-Gm-Message-State: ALKqPwdmr+xedcrqoMee2EdS/1cY0+8HguRoldXchOx0oWyNcFSV0t6i Cxa0f2rb3Nu+o3cUcCjyJI4HQe6eOuPB7HxMMBmzB6zDzM86Hdl6RmbiaAGdJE0v3InSOcmsEUH WfY+kfIhgWoOTKWXP4lsWR0H+qXWOuen4Q368rfSmHKFy4qD4Y5K8fOC3mv639HdHuw== X-Received: by 2002:a24:f9cc:: with SMTP id l195-v6mr963413ith.132.1525945956212; Thu, 10 May 2018 02:52:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoJN8EJUKJjqScHh78GqwZbhO54y6yLHZ1Z5Khsue/gZy76fU78nPjWxP4p19EryuGL069w X-Received: by 2002:a24:f9cc:: with SMTP id l195-v6mr963390ith.132.1525945955578; Thu, 10 May 2018 02:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525945955; cv=none; d=google.com; s=arc-20160816; b=R7prvrJnaURWb/vj+xlVotyB/RJh4BYYSTI4q5VeB4oWHrCm46a+IJX39IyPUZVUW7 kW9Q+F4uYAwmBWo8otj9QZHOPWWrwQUZ+sDOZkyVBdRplbgr/fRYxRskIQi+FVlwMvOC 2ylOBYH2RIhldToTZF6KXvFsN66wxNJNYpyGmJ+kXr7mAanbUFLOlpMaFBq6ikJw7/G4 Ezbk9XPRNk+joTOO+7SXzlsEPl3/hEcd13NGCcH97xbYHs9ZVFYPQyVZutJ1PAlYpF9C aNLPg8Y7mOgBDdJgEW243zPN1DuaYWq104ftIcjWlD9E3RibrhkpQghNF42Jvhd6/NSw P6pQ== 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=v0gPLB3yYgX4SfGUdbAIfKlzZW2KVUfCmI0fwH+RNhPZL4WSiEe+hYXlLta/apvvL4 6AbzmCtpcT0fTRtriiE72QChLR4rijnJiEyC1rWU8vem/Ed5gJMSGZ06p0HcPPXmWiGo Ht4U+eqkCo0ZoLPAxaM4AZTVD0WFf3njlTZ0+P9Qzd73zUw2I74cER3CMQvZTeMJk2hl UeA1vIOPbayNbMEiQU6SdyGggPVG4Dcv15a5D2qLmB2WmeuNxXJKAWRFkebGaSCSZqBC kK/Yi7dWPMkn5U/9kSZePeMNyKmWKDBxynA1KnREdDWpUvfrx6/vDK9SPW9KdaU50S5H wpaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=Fhi6i4IZ; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.112 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-ve1eur01on0112.outbound.protection.outlook.com. [104.47.1.112]) by mx.google.com with ESMTPS id t15-v6si542701ita.77.2018.05.10.02.52.35 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 02:52:35 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.112 as permitted sender) client-ip=104.47.1.112; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=Fhi6i4IZ; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.112 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=Fhi6i4IZKjRAsUVn8MxxYObNnf8ABpKwqXppbrrfcFEIqDyCiSaZu4b8TMk7qf67p/0xK1k1XninA8UNFwg8t5rqINc8oE8XjXUMmQFV3mUWfnBZ9uQdw5pkcxzxiTqmlV+KyndV3h/U4/GLjiKR04K9mu8U8clXsq7G7ID+9fA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by AM5PR0801MB1330.eurprd08.prod.outlook.com (2603:10a6:203:1f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.755.16; Thu, 10 May 2018 09:52:29 +0000 Subject: [PATCH v5 02/13] memcg: Move up for_each_mem_cgroup{, _tree} defines From: Kirill Tkhai <ktkhai@virtuozzo.com> 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: Thu, 10 May 2018 12:52:27 +0300 Message-ID: <152594594768.22949.2451669820790556832.stgit@localhost.localdomain> In-Reply-To: <152594582808.22949.8353313986092337675.stgit@localhost.localdomain> References: <152594582808.22949.8353313986092337675.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: [195.214.232.6] X-ClientProxiedBy: AM5PR04CA0010.eurprd04.prod.outlook.com (2603:10a6:206:1::23) To AM5PR0801MB1330.eurprd08.prod.outlook.com (2603:10a6:203:1f::8) 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:AM5PR0801MB1330; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1330; 3:oGcN9N7nfnmNwZvTQurN8HBT3aHXpypZXBax/qYZcgssLb9hmOiAQ4AMAbXQdnSSB4/fHeLexOyqZ5Yn2quDOyRc7O/W1juT0Tt0EdQChSRjeyMKV1i1JwZcCm0avl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TSfbbZuoi+8YUq9qedOKfw3y+HuhWf7RZdrxu+/VGXrdjYLmxMsbOb8xsgsFuQmqvXm4TJHcW1OB3N+Mgq39Oj6xolKH0Ay32ixVpoiZ4cgHNw1/6NEIsez7pu2IJvcOXyxEo6ea/zYITvRZUI4qTudur1FElm2xhx8NO1VnrF69Jv341q0ZmASnzVDg3YMR1q6HsWpz1DyIobpFHURq3AxfP5SIeEZuo1V8yuu3i; 4:xdNbL7RuE/lIm6zx69YPD7cUipEfRA1axwHwvTig4L2tpKDr+nbkIRV0niK9YZmY8iAsefLx5EK4k5KqV4zWjsfgCGflwa3jv55qZYM2Rx+UMD7PZ62iT04dFtz80mzVUmVj5Z2d7yYr8qJcV+G9jfQar+3fPu+2YIYcwUTxrTlQxJqXyGqk+sVkG4kRjDD5ELGlEE0HzTcpcnqbhirY3xpHMRQikb755hwnEv6dMfEV9bcc4xBWwe3f4YEkQHO5I1GAX03CuTDl0B7ndBrrzA== X-Microsoft-Antispam-PRVS: <AM5PR0801MB1330C825341C8A81EBEEF2A6CD980@AM5PR0801MB1330.eurprd08.prod.outlook.com> 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:AM5PR0801MB1330; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0801MB1330; X-Forefront-PRVS: 066898046A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(39380400002)(376002)(346002)(366004)(396003)(39850400004)(189003)(199004)(305945005)(186003)(86362001)(103116003)(6636002)(2906002)(7736002)(478600001)(230700001)(11346002)(16526019)(52116002)(106356001)(97736004)(53936002)(39060400002)(476003)(58126008)(6506007)(956004)(76176011)(2486003)(7416002)(68736007)(316002)(61506002)(486006)(55016002)(25786009)(105586002)(23676004)(81156014)(7696005)(446003)(47776003)(81166006)(8936002)(50466002)(9686003)(55236004)(5660300001)(386003)(66066001)(8676002)(6116002)(3846002)(33896004)(26005)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0801MB1330; 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?MTtBTTVQUjA4MDFNQjEzMzA7MjM6eDk3OGYxK2p5M1JtclFQQ3AxY1NIWWU4?= =?utf-8?B?ZjRiWjl0dE1vMnAySjhHVFRJOGNIZ1l0cTgyRXlZQ1FjMUpVcXpuRXFjMmVP?= =?utf-8?B?R3g1NDJ0RkUvMENYY3FFRi8xMzhLQmdFYzNHdnI4THc5c3lOc3IzRXQvM24w?= =?utf-8?B?NXBvc2V0WDUwUFNlKy9CdG53ZnNRV09BUXQ3MXErdjNJWTlUNDBmVjFoL3Vw?= =?utf-8?B?amh0UlJtWGtLQytjVmF0eXdxeTA1OXVDVnV0UU5MSWdoYjdUZzZROENYdmtL?= =?utf-8?B?UDJIdjZXUDFyS3Arc1VlOUVucVNkQ1l4dmxxaDIrWEhObGdiSm1RU05mSnhk?= =?utf-8?B?R2o0WE14dXYrVTQwZ2ZFMWFMb1ExTXNKdzduUTVpaUVPd2cycEsvb1JjbW40?= =?utf-8?B?Ulo0SlZXS3ZhYzFRZjlmSEFVM3d0UGxQNVVFd2U0Y05JOFJuQlpOazZtNXl5?= =?utf-8?B?TXpTZDNvME5uZjhraTd0Vld6d0hrZjRITTI3U1FvUUNDTWNsaVo1YmR3c0pl?= =?utf-8?B?VWVKQXlWM0UwNExsaWkyRU9Fa2I0blpZTWF3dFZiRjVXZ2FSZ2t5RDdBYVZB?= =?utf-8?B?V3E0U3h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klJn7ZT9g==; 5:Ba17EeZigH3VKmCjGTkaeX+qytB/A9a5dYWYtpf1rqIsF6yPws3w3KoQLUvWYqNYyFMDiqJhsWZVZrvQx0a7PKnZhjP0RhPuEw5xUZ7WtF4TItk/RIySVycvPC1aGB//GNcPaoSBwkOGxLX7lUE+2qTmuICo0hyKZkrZM0qcsrs=; 24:/Y01/DpxBW4qoW4gsc5LLJPrWUlEmXsFFW7e4yj0e8M/5h6uJObGIdt4C5JZUIVo8XR67RHeq9XkVK1DCnbPllbxwjskBurxV8+C+1vzWRU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1330; 7:bAS3M16siOrPQWrjufuw+DrWSx8VUI0QvBnB5Su0XtC0RzC2Fo3EE6W9AVBXymHTWB+/6aNR2UO1W+emd9HigXVhi7zkCCfyQa+OQN9maqpRu8nLWX5PwhxEJtcBrV+skdqxA+JtTYaEOEL2o5xHmqaGKqeRdAdGZsNOm22jpbSwDfOcueISp2XIFx6/nLZz6r5CNcLGq0jSU1aeKtPANny61m+ErJS2o9kD9qkeFVJcHj1Pru9R9lm7KZ0At433; 20:szidGn6Gb/ULWmb5MxpgWh13CXnteqd4X1O302kv7JRJuVXucyyrTPsFz53RfhDZ/QpFwFRJZPEIA9l3LPhpYI0J9te17OZgHKzNJetOWElJeAYuw3mvzwNE1CF2kbjTqakR3NSiJskZcQUoPZH3dBDHj6m2u0gw3mwToRu96WM= X-MS-Office365-Filtering-Correlation-Id: 00675c89-3c7a-44be-9b72-08d5b65bbf53 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2018 09:52:29.7689 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 00675c89-3c7a-44be-9b72-08d5b65bbf53 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1330 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 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
Next patch requires these defines are above their current position, so here they are moved to declarations. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> --- mm/memcontrol.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)