Message ID | 152931512870.28457.5926882193578999662.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 C11B56029B for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 18 Jun 2018 09:45:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89CFE28474 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 18 Jun 2018 09:45:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D4432899F; Mon, 18 Jun 2018 09:45: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 E156628474 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 18 Jun 2018 09:45:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D78416B0010; Mon, 18 Jun 2018 05:45:36 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D00516B0266; Mon, 18 Jun 2018 05:45: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 B7D776B0269; Mon, 18 Jun 2018 05:45:36 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt0-f200.google.com (mail-qt0-f200.google.com [209.85.216.200]) by kanga.kvack.org (Postfix) with ESMTP id 88DF86B0010 for <linux-mm@kvack.org>; Mon, 18 Jun 2018 05:45:36 -0400 (EDT) Received: by mail-qt0-f200.google.com with SMTP id d7-v6so13461193qth.21 for <linux-mm@kvack.org>; Mon, 18 Jun 2018 02:45: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=3t80llDOULAFp4akwFSvGNElipbHhSFKGEi9if1Keqo=; b=m0RmUVEF2KBCNO1JSPnjl1yH7zHbHnQkbwS+9n0Rwhl8542yYijNcQEjwVUxKyglm6 SIhhzmCjGQM4P4T49G+6MZNRkolNFpDft0KGU9h6D/1CVKLtMUIAimxE5JT97ChXipJ7 JTKAz32wN1HrfZUeHUfMISm6AkrnHhiOEXZyNo7JFCZuB+AV1srIYCme3bHXm1VoPNWC TVHjkTFlBvszurgbZ5+355rSmEkue2J3KUoFL74r5Y8QP22UJzwlwe3GUAU986JwnXMH PcoO8KSdAftjSJoaTRPxt0cUu8DE2N/g7LibdiWS1CKz/F45I5S876lNdW2FussjuRRo N+Pg== X-Gm-Message-State: APt69E0v5fwv36jE+A3vVNTijdfDEbh/Jox3Mqh7RlbZ2Ztxv3ozTliY TL11BNFMrvdp1CpND0Wg9tkCXHVeB9cagNCHtJFtTgha0hC1HpvIa7mPwIk2fUj08GIsDQk0VMg G6ZoBYU+dHS0JlP6rzA2FK6MqF/n2cOr67bFMdSG7zm2wFIU13CauYS4WcZQhCV3rkQ== X-Received: by 2002:aed:24fb:: with SMTP id u56-v6mr10463274qtc.203.1529315136306; Mon, 18 Jun 2018 02:45:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLADoGKeg5PP7AAxawA1IZuBTbxRp2XIM7W5NkcitSqwvUkGyyx+jlULiOe/clndxWZbiZl X-Received: by 2002:aed:24fb:: with SMTP id u56-v6mr10463250qtc.203.1529315135707; Mon, 18 Jun 2018 02:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529315135; cv=none; d=google.com; s=arc-20160816; b=lQkLGxGuDyjFVbiCXbOFtcdI13GreyQ6MS3BR/L2Hk+BYo8ZaeaJfTOnXkE/m1Kjan C3Ep2XtHcHTNedJ6YQ9MyaAGJDqiaUval5JpVx0rSgQbuKOu21MNumbohBHuxrS8l9uD JS6tim4XewFLEF9ETjtmMxHMybpfilY9miM+VmapAYb6UoeZ11pwb30bDY8WhLx4583z oT36/DVGbz7MVrMlz4zkGue7w73NqqDztnAXpuEzl+cD2k7eh1vSniHVisgldYYjb6rE j0ef3LhALHCEWnT3OGbqf/2J+Wx4zRa5wsTsvKBNljOjZ6nc8ZUGOstIypradL7DydZ/ JWyQ== 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=3t80llDOULAFp4akwFSvGNElipbHhSFKGEi9if1Keqo=; b=z3DcTISBGjlz4t4ucPOBxcww6ZeBB3WyoxOMOOaZ3eSq8ygR9/sezGOcoIU+xe+QOs mRYr6zs0OI4wI/4LaAMSRNJ9DF7kCOipiGMJ5Gsv/eJ60x7c3iw+EElJD/Qku9DKrzWu iyoUToKegdpFa/qwZmMFAxvynIxbl5YvPGbKIr2Sf1neHCgNX3XnLc1fjiMXB9PYRrxI /wa9p6hHh0GQNFOpDGswjgWcoTVqECqh5gGlCSGjTuK8scwtwj9AfzjfV91oSaZTsr0S R8urRh3Eo/SH3ZD8JNV4SDJvzd1C3sFb+MPu4Zzpt0AmcauZAFcfkUxS9osr1KJ8Z+FH cqqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=LZvcV3am; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.132 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-ve1eur01on0132.outbound.protection.outlook.com. [104.47.1.132]) by mx.google.com with ESMTPS id i7-v6si172375qkm.365.2018.06.18.02.45.35 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jun 2018 02:45:35 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.132 as permitted sender) client-ip=104.47.1.132; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=LZvcV3am; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.132 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=3t80llDOULAFp4akwFSvGNElipbHhSFKGEi9if1Keqo=; b=LZvcV3amElDhpJWV9WLFLq1pgYYhOwmkdD+mcdECAtOYuCL7cngzzZrS3hJpIi6G3BMQpHaT1MhLtJKqSIr1auYo/HePFoGCamaOQPWILtOu+1YM4qiqpcmKAnhO6vdx1ahQcDfyhJWWWbPMOrQsQyyHnm8TKBuhqJ2ELpvZecU= Received: from localhost.localdomain (195.214.232.6) by HE1PR0801MB1339.eurprd08.prod.outlook.com (2603:10a6:3:3a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Mon, 18 Jun 2018 09:45:30 +0000 Subject: [PATCH v7 REBASED 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 Date: Mon, 18 Jun 2018 12:45:28 +0300 Message-ID: <152931512870.28457.5926882193578999662.stgit@localhost.localdomain> In-Reply-To: <152931506756.28457.5620076974981468927.stgit@localhost.localdomain> References: <152931506756.28457.5620076974981468927.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: HE1PR0901CA0056.eurprd09.prod.outlook.com (2603:10a6:3:45::24) To HE1PR0801MB1339.eurprd08.prod.outlook.com (2603:10a6:3:3a::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 64ece5c9-bd59-4f1f-0b5f-08d5d5003b6d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:HE1PR0801MB1339; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1339; 3:ngJ2CXER/u7VVTh8sRG915U+sX9C/3Q83w7XUvf3iP96dvjc+peTh4EGxPhtVvOiV4PtXsqw5cSG5a9rrz98uMmSWdX4UAthVQnffZdcdTYrvKz3Vef53kV2RXEFf3EPrEsKTDh9ED9Y6opt9v+Ul9NK8jF2s2KJ+KC5AmvVyK2bKLbRcVyhDz3GRpf6zftYQH2Fe2H4jGHFsOq91+2XtfI6+GZMWrHLDs6AE+1OsrFIjZqTSdtD8cT396THeDfA; 25:5JjaWOOoXZOPNIZMZOMBKFwmxelw3r5AdD6hl35bAkrZDzScDYZtI8AtNbPvVUh29L/2RXlhLfENd/EuRkhgP3i+UaGHm8RRZKd1Xr4gURNOA1VXabZd7W4XjrED6bDYsLlQM6Nc4NG5nVgKh098URopiElh/AC1Le9+sZxVc3N03uJUME2wscw+l2aqaSFRE+FrldpZqMStCwxudvYzYBVt0rQEVX+Q+t3w7OWLjQXnD5vmVTGFnOVvr8zGLgiFkQGZUUTny6NTO0X/Zlckg7ixdAtBFU8eybyXa7mQmJ+CVc3cxM7oF5XfbG8mBHuHfK69+xdwpOb7/C+7PxHwKg==; 31:ZyC6eIn+47d/QC14CBosevzBnIbJmX+n3aj1urkp3wzGpaVPmYDeZIxTDfIrJUMvIwzqmSVqhACGsq2M4/AjbdLdwoD1ndZWWuvoEs2hLe4XBHId93qFlyk8S0YK0J0CL9JfCbjAmw6fklVeImWtzQAxBcXy/5VEHpIPodbTDglUNVo2Utg3hAmNP8UqNkbiSE0clRj+G3x+lH/7gbz059h/KbeQdROf6EXvAsE6XoE= X-MS-TrafficTypeDiagnostic: HE1PR0801MB1339: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1339; 20:6D5ScJoBWqX4DpHCzO5VsjmnfKtkyWkTQRlyGGIN3IKAQtWgqA6jLX5vqjquVFOlTFoDjvlupeqW1ceeP+YaGBX/WzaenktJ2QAT/51O3bt2F41WDMUqPzH6W/WRuQthDxlW4MBLbreT/PgtTvfS6GdJfxniaaJplX9kTRxPb2jIt0xKHtjOT+cyPt9YxX7aJXfGqapLCxehyFM1N4nffWNIDkHsXF54wAC8W+5QnYfWFjwGCx6N0fdISU0Iy5Wiq/I3eo25csiuFgdfAgFRwcPPXiOpqAWVOQH9ABFB2j5JP65UOHaNAIufEVDNDNg0Q7xTRPbnWH59izXu/yYgKDX46Cy7G1IEhUTe6s7+oRkDSSAsJIKqbE11EIkyioJl1SRxPWXgzWfw77XRh0QvGdgG86/blfBQ3FtSRO+6d68pMd1tSSMMupZNh1YaNt5C2ESkXyKR7gXC+ed/PA+2d7NpFWUOkllLE79d+RR5hodbuwmcuXP/lxOdRs/Wi64x; 4:lpmPl2g4wxRlKCXgsOrw/Qu0R6svyJy4nsRkeoRnvO0zH6R8aGmVxwe1Ws8RehIBpN45o/9CgRZaBf26U3AlrxMg7NapKT0ngIPbnGNDO9TH/fMiNt2cQOrRURY4B1jyYd2GxZmca1jboLehGnlBa62Nq9UM6Q9ljTdE+z6U+M38KPZd4hOc/h8LaB6kKbyGNEwitJeMOBUTI3BUTG6TPkHLIiS700/EobKr467qjnvJ+SKoxAAbaV6ZE7R+KvUbHGieiMR+eiTAdE89hE77NV30i0eJa4tDqLJ5iC3NDAnsOGwv6xbqzT7vg5CNKlBUayDLKjKvsxLRNnh6dy7WF5cNWYOTNLyi6U5tDq1aZFBmcm4UmfYBll3JTbBoSr7Y X-Microsoft-Antispam-PRVS: <HE1PR0801MB13393B979EE481533E0AD5DCCD710@HE1PR0801MB1339.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)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:HE1PR0801MB1339; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0801MB1339; X-Forefront-PRVS: 0707248B64 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(366004)(39380400002)(346002)(376002)(39840400004)(396003)(199004)(189003)(476003)(11346002)(3846002)(16526019)(26005)(478600001)(9686003)(186003)(105586002)(486006)(6116002)(106356001)(86362001)(6636002)(446003)(956004)(68736007)(103116003)(2906002)(53936002)(39060400002)(386003)(8936002)(23676004)(2486003)(52116002)(8676002)(76176011)(7696005)(7416002)(58126008)(61506002)(97736004)(305945005)(55016002)(50466002)(47776003)(230700001)(7736002)(5660300001)(81166006)(55236004)(81156014)(33896004)(66066001)(6506007)(316002)(25786009)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0801MB1339; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA4MDFNQjEzMzk7MjM6bmdUWTZSaDlGZ0lEUTRCeTEvdjVWbVpu?= =?utf-8?B?eC9NU1dZL1VDbU84Z0FjREF6YVhDQWVjZnRVUUJLSVoxamh1TzYxWWFjeEQ1?= =?utf-8?B?ZnRwZXpwNEVWN2VUN1VYTGxWTEE0QWdjbi9JaDlDZmRqbElhMlUvcERkOXR2?= =?utf-8?B?OFBSc2ozaVhYK1hYYjgrSEp2YnA5NzV2Q1ZQRTNIUXBCdklyT1BTSlFkd0N2?= =?utf-8?B?cS8xTmdBRXV0RTh2TVV2d0NRbkNQLzdyZHc2NkJiS2ZBanpzVDFacUJDNmF4?= =?utf-8?B?NTg5U1lTWEFZcktNVkxBWTZtZW1DRDZxOGg2MEk0TzRnVGxINWo2UWp5WFdp?= =?utf-8?B?Uk5IamVBZ0Q3V1pldUZONUh5STNYSFN4U1psQThiUHZ3enUrbklGbTIySXRh?= =?utf-8?B?a0JaSm9qTnYrTmNiZXJhVHVnMzg1WERjUkpoYmxnRXI1VmFxazFJRy9LZzZ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AHq/UlHX0LlMIThDJ7+UoG3uKBXyUllVeMVeVdBoF6FZ18wh97fgRk9qskyUszdPI8tiyrR9f8oSNwGCOYUXge8uSy2O9dfITccCKWQ83k4vPO3EvHzosZMUHcgufIq14IX1hkkDXahYyDM7xnBlbA==; 5:AcDYI9WxEq/NshMa+zn6Cn86YcESZn3UdS8EKJBrFhzy4ih0zxeZbNh/wdPRjKPpYd4qHK6J183T2qN3AKLvU6d9ksb/E9KAEwaKTRcziko2+IUFPM1me0rmVKTwKSrJP6gnF9rwFjvq0lGVSZLQQLfY4mg6Mz37EPOgY5mSwqc=; 24:DzUCfX1FggEDHZT0VQJPEHuG4Ijh+iJ4CEYBqzlnpOuJoZAyItr8H+AS7mZx7opOikTw0dml3ZezwJj8JKUj5QEyDyA3gtt4PqpI3e8sQtQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1339; 7:AkgxFqVQYuQ7zUtuVdUYApjUpig/Uwy29raOh6ehWziiwpQb2mDzDa0VrevwadngH2vV3GK7EGmP3817cpPIdJoJJ64d92xWq5FlmuEQD6fmC/oyIdYdzqRH69Pj0B/EluNpZnG/MbeLk2DuGWb32r71nM+vRcmilhB4ETcbFB5nlHTqEw/U9j2etIpyE3VY1oKRG5CWnJYYo0m4A+/JdMzzWf+Jq0+Vnnexl+hcF5pjJNeHMC+anQIyaHuaAqzY; 20:i8r3uu+BW9nelTGZKAcPbZqcivkACiHHWXahtannRNSxMsKmEuOm1L2Ml5jOztMS9WXK9Wa7nVbzflT9joXu+UCuFcP28qBUTmEAD/r8+DkENIPIXMp979+rm69VozfjN7tYO928IsR/UQghV5Fm8VkaJcWOkC3Hj+IX6hJzuTQ= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2018 09:45:30.8815 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 64ece5c9-bd59-4f1f-0b5f-08d5d5003b6d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1339 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 fca9326fba99..b36229bc2df8 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