From patchwork Tue Jul 3 15:10:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Tkhai X-Patchwork-Id: 10504335 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 51E8D601D3 for ; Tue, 3 Jul 2018 15:10:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F85528B30 for ; Tue, 3 Jul 2018 15:10:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 329F728B58; Tue, 3 Jul 2018 15:10:48 +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 EB32928B50 for ; Tue, 3 Jul 2018 15:10:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6E5AF6B0287; Tue, 3 Jul 2018 11:10:45 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6972C6B0288; Tue, 3 Jul 2018 11:10:45 -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 5862A6B0289; Tue, 3 Jul 2018 11:10:45 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by kanga.kvack.org (Postfix) with ESMTP id EF0296B0287 for ; Tue, 3 Jul 2018 11:10:44 -0400 (EDT) Received: by mail-ed1-f69.google.com with SMTP id g16-v6so1062622edq.10 for ; Tue, 03 Jul 2018 08:10:44 -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=z6EmwBuQQemhBSHaa0oZ6uGGmkQS1ISWIHCzJRayAwo=; b=qkLJu+Uh9c1jdFWvwWyBMqol0cGbvVJSla8Sg3AV2gjnzxy3gCoZfKVhjYXjRFAzrU 8t13UShhDNlGTjC/8SX4HOggX4rHRdqOz9tgm0H3thh27qfKTr+/hPsde3EEuspzQ1DP efqiPnwj38NVmTYCQAznFzjHrG/hnP2p07LMM5AFnyuY6O+N7e8N2fSfCb9a0Nue2EWO qe5mAsdZepFp0fHul+RA5SbVtXZMD4ArwlUQuoWfPjhiBam/MqmuaZ9xKBeZPl8pMzg1 HN086sIDPyngLim/+YNpbm62ep1pabsDKwR8UcIpThRY9rOexNwRVUthaEO0XMh3H89g Wrug== X-Gm-Message-State: APt69E2c8eCe38zZA3KnPqRuzLe4FFeurG3BuL4cr+kjRk9pddI7XHxK inektF7fZtuY7Lyvc78bOszeH/RJQHe3qOytVERPVReez1AERP1jCQHOIsDoaol6Yp0HoCEkb36 bmny0htUe6fvtf2Ub3zoxJRNMDJ2VuTeaR/sC9GJ/V8LBAMb1klBmb/hmVcC4Tx2gsQ== X-Received: by 2002:a50:b723:: with SMTP id g32-v6mr29210537ede.139.1530630644248; Tue, 03 Jul 2018 08:10:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc/I8dEVkbV6Hv5wDzV/3SYJHxeg3v7DbAHrzewjBRnHEUinEWa/uLBVn6fSXlMtY0EA1ww X-Received: by 2002:a50:b723:: with SMTP id g32-v6mr29210447ede.139.1530630642989; Tue, 03 Jul 2018 08:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530630642; cv=none; d=google.com; s=arc-20160816; b=01d5c2JwwjqUx33SI7tav9wcUZFwn/ikQaDBVuid+6W2a32fFgDVpqNOgAST4qzS06 PJRknn+FYMQp44Bt1SpUxRdHPlyUt+rv0iVj/oIVoKeYMsOYv7JTXLvpLOD+P7SWTo0l yqEEQ/o4fWMi3qAGkw4/pgiUMxmHN+4sBsBPTXq2ZDcfPJH2NrEVtTkL4xP+2fDb4/SO xmaj3gQqoOedAkYlIjrnxBbIa5g/DImhtntTmSTcA2Jiv3IA9bEFj73jp/AYKKk4LUl+ iLhbaYH9ZUg1W0xYSPAgSz6FbDgIHiZPILv66ldypzHdHahlZqazHgqaUvkLn5VxQfda /AZg== 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=z6EmwBuQQemhBSHaa0oZ6uGGmkQS1ISWIHCzJRayAwo=; b=v5LvyBo4J+2ImW0/kzD7YYHYivKWCl4dY8u3qf9Nwq+FARZbYbrd4DPzB8NWBz/flh keQYx59BQ6DrTyi3AeKNYmui9rqRWpaNYkHVcwCCW3WEkAuo+Bbu7E8fDWhuztdNBElG xd6XklMM7+dmXlKPHrPg3xnRX4MYt7ReynOf1gJC4yGX4i2jsCyxm9oBs82L+PgDGQcW FbLus3pNLXOsREQWDSYXkvS+FipvVyPse4sD1VBo7QPvhKT+KuCaD0yra+0pmAc2SHRa bLqNxuRr0HrGuCUADx68VMc9UFrNjAPaQqz7ilhMswAsNB9o8tsHxzBzR44WGF8y+l9c RdEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=Edcc0V4P; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.0.137 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0137.outbound.protection.outlook.com. [104.47.0.137]) by mx.google.com with ESMTPS id o16-v6si154489edt.64.2018.07.03.08.10.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Jul 2018 08:10:42 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.0.137 as permitted sender) client-ip=104.47.0.137; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=Edcc0V4P; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.0.137 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=z6EmwBuQQemhBSHaa0oZ6uGGmkQS1ISWIHCzJRayAwo=; b=Edcc0V4PQarQAGoh8fEHWOJ/kZSHuaUvOT5iIIpEgmmkPHLTh85ogTVjV13gvA2OVUVr2pszzR2Kv2VTKCQW4hCONHHLf13kW3KZKNCTp4L4qAgIBp+gvEh3tZvlVn7/HuKQ/KBLfKNe2bQY9ROwPyHY4A3Qn5HRvBjWCM/AqVY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (185.231.240.5) by DB6PR0801MB1336.eurprd08.prod.outlook.com (2603:10a6:4:b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.24; Tue, 3 Jul 2018 15:10:35 +0000 Subject: [PATCH v8 11/17] list_lru: Pass lru argument to memcg_drain_list_lru_node() From: Kirill Tkhai 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: Tue, 03 Jul 2018 18:10:31 +0300 Message-ID: <153063063164.1818.55009531386089350.stgit@localhost.localdomain> In-Reply-To: <153063036670.1818.16010062622751502.stgit@localhost.localdomain> References: <153063036670.1818.16010062622751502.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 X-Originating-IP: [185.231.240.5] X-ClientProxiedBy: HE1PR0701CA0058.eurprd07.prod.outlook.com (2603:10a6:3:9e::26) To DB6PR0801MB1336.eurprd08.prod.outlook.com (2603:10a6:4:b::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9f8be903-47dc-47ca-a444-08d5e0f7225a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:DB6PR0801MB1336; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1336; 3:psiYGilGq5fTCUHffx9/qww5se6/fLwaHfA3BxXAfAOVjZ1vMvd0zbolhObuL3OwzqVKtYYzyXOxJJEk57Vve+0CO1Z3FWvBdx4/oVHiYXjqZWrh/k+Xm5FfNHfvVLMGWX5qyh9C5zeQ4sa2Iggy+5NFE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5qUqe5ujiCPfhUgwGeXyZHafncdmthtL4g24NSouHh/ANTSjm3BJHT1YO+CFymJol7aS8Ycv/Z8qtKqyuQee8x0kQtnv+r7jQCyUv8uhNU1UDX8uEWd2LtZL4oGRnbOMmGr0DbBdwXGB9sIue39VyAZkCZ6u0VPjK04m6SawwWZ6GYu2k5Xrhmoh2CA; 4:qulrtM6bahwNLuum50DpEJDrYKup5Y7giT7pMlRCO0Bcc0QO4184KeZvsEELPpeMN9plSB3TV82RtZqnAMu6lQx2UZl3p9FGMJlItPMLex+quj+UiW0420X0T+qhH4eO0w6ufi87rLevKKmVw/LBWsoEd3QQLQss+tahwosLMzEPraL7sCoxCCjdxKfuSMi9dRjAnyYRsaseA1Qj/PQ6XotCTkdJkAB47IvVWQu1FCJwN4X8dk4O1N0fM/lIBYwa9pmBFe6u0MAoFQFgk3SSpmROtCzd6VOihdKLCVGu6mPySM3nPXaPuLi4hTb5xgpW01no9GQMPMKvWT8khfl9e3rbWJLPUVMDCQBlImLBfmH6m9ydDwTDPH0namCees8t X-Microsoft-Antispam-PRVS: 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)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:DB6PR0801MB1336; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0801MB1336; X-Forefront-PRVS: 0722981D2A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(979002)(6069001)(366004)(39850400004)(136003)(376002)(346002)(396003)(199004)(189003)(478600001)(26005)(16526019)(2906002)(23676004)(14444005)(103116003)(39060400002)(186003)(66066001)(6666003)(47776003)(2486003)(7696005)(53936002)(55016002)(52116002)(6116002)(105586002)(25786009)(106356001)(3846002)(5660300001)(8676002)(97736004)(50466002)(68736007)(8936002)(316002)(956004)(476003)(7416002)(81166006)(446003)(11346002)(230700001)(61506002)(9686003)(76176011)(386003)(7736002)(81156014)(58126008)(305945005)(486006)(86362001)(6506007)(33896004)(921003)(1121003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0801MB1336; 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?MTtEQjZQUjA4MDFNQjEzMzY7MjM6WlBySjJsdFk5aU9KV2dQeStaWjJpeGR6?= =?utf-8?B?MlBrNGQ5aHM3c2FtWVd5UWlGV0hWMDlTdW9hQ3NSdFpCRkhxZUtRTGc3Zmg1?= =?utf-8?B?cytnS0lra1hZa3lsYTA3QnBnYndHYzBrWXMxSTRrczZJNTJMalF6V3JUcXQ1?= =?utf-8?B?bWczdmQzd0tNUTVNdlVyR0xVc0dHcGNOcWxGQnN4U2xLZ1p2YnRhNHFNck9i?= =?utf-8?B?cGNSMHJhWXA2M0dpVkxya1p5a1NobFEyMm9GOG16MkxQVTdaSHEveGtmRGdU?= =?utf-8?B?TmZXeklBTjhuaUZUOTk5d1dmSGhvcHpKcVdUcGxUYWNEcm9rMGprbElyNGxv?= =?utf-8?B?c0xxMmpmSSsrb25rL0VyeDNxR3M2Nmhlc1BuTjZSbnZxellSVHIyTHNuczNy?= =?utf-8?B?WEppVHNNa1VZbklaMjlUalhzUXQ4dVJVSEFRUkUzZzgxd0RyQitnNTRNZHpz?= =?utf-8?B?OTBLT09ZVnBCYUJaWmNlSWhzSzVHT1luR1ViUmFEUE5rUVhhUmxZcU1pQ0pE?= =?utf-8?B?bytLYWRBYm40RGc3U01IVVg3WGZYZm9TUW0xUEFuSkRzUDBCTTl0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YbEPSQA7Cwnt6zsLfO1QWfluuQKJZb5gF36hbT4giNUbU+/mXqQR+UA/A7WpvT+MLmudTGtNOXkURC2a4f0HNHkuT3IyD+9E14N1P5rdSTOhC3HG6n5DEntxI3t33M8HbRs47kbPZitTIr4LaUosHlsne4PSGTy/38ePzo5aGEmoPm+uS75ymEG930v50yGP30FCBxtrNS+YcmyALnRn1AsJbPtORW/yCmyFUVjhGdL9jPko6J2YsHvURe1Dq3EBpNNtpJlpa51uJpmGMvnFKqDMyBqSwHqplICVTRwIwgj/RJt46u8MrqZ0xcFRmo+0VMatw8vnN1t2fs8p4TGPllqmM0SIA==; 5:t+y3yKUOAq2318Lu453glIVHI+lxvl7LtNN7Us4ENrU+sYNgu76l0NueIsOwx4HDepNtaw0PI2sMWQI0cSej5/vaeXp1ZpO0vaVzKYvl40DsiYFSubXOl0mSoZfMb5H0YQA0EFm7wzvj69FZeQE8E9qHKREubLBjnl13WIdbnPI=; 24:k+bgXAknLVUy32IX2AjEpukZ+fcVXGZIulEuSvmtVbagnPBv+T3Rlj9McBsAE2eF/7fB8LCmp73rPkup9eJp+AzAcqhCG43EZNy+kJIxHXo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1336; 7:x6EeeM70xK3ZrXs3pAAxHikvoGh7oxJvR4ALVG8LQHbkkdXrQVRBR3xHYiqKGtzuV6gOD8hVivbXissTo+3+LlFWGkV4udJAoaWtu1sxs0zxkFSH40MXpjA1UneVXeV1dqgxCiHIUCtFYBlsHTGG7+kIBTPKKIEj/zMKaPF3W/eyMqXJwUjcGSvCaQmKkR8g7QKBhPF1wahbYrZcGdErVrVfuB0KS/VnDpi2m9HbXfGQPgj8v9LDDvrEmDbXmBcj; 20:8geLo2NYu9d2LkzS6u6iOnCxJqOaapyoxn4ueapTkt7ileag/+MaRIKnPfitLvnqpCPMMmXgTgRufQHhCOccRmXIwDN6m817FCfGSYkrkm3Efl6CVWYQt08ccpnyT3YXzAs3+r8NihHV3URQu0sYRzxzqaR4+2VuJIcpwFbw/7s= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2018 15:10:35.4161 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9f8be903-47dc-47ca-a444-08d5e0f7225a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1336 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 This is just refactoring to allow next patches to have lru pointer in memcg_drain_list_lru_node(). Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt --- mm/list_lru.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mm/list_lru.c b/mm/list_lru.c index 467820201e2f..fbda35ac5c17 100644 --- a/mm/list_lru.c +++ b/mm/list_lru.c @@ -514,9 +514,10 @@ int memcg_update_all_list_lrus(int new_size) goto out; } -static void memcg_drain_list_lru_node(struct list_lru_node *nlru, +static void memcg_drain_list_lru_node(struct list_lru *lru, int nid, int src_idx, struct mem_cgroup *dst_memcg) { + struct list_lru_node *nlru = &lru->node[nid]; int dst_idx = dst_memcg->kmemcg_id; struct list_lru_one *src, *dst; @@ -545,7 +546,7 @@ static void memcg_drain_list_lru(struct list_lru *lru, return; for_each_node(i) - memcg_drain_list_lru_node(&lru->node[i], src_idx, dst_memcg); + memcg_drain_list_lru_node(lru, i, src_idx, dst_memcg); } void memcg_drain_all_list_lrus(int src_idx, struct mem_cgroup *dst_memcg)