Received: by 10.213.65.68 with SMTP id h4csp30578imn; Sat, 24 Mar 2018 12:34:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELv/fEMbQafZBiYa71Tc8S0gYBTFNC4qe74BUIUX+vM4I7MjS0gL5QnbYSBUr74ytDfCAUvY X-Received: by 2002:a17:902:7c98:: with SMTP id y24-v6mr34565967pll.60.1521920052883; Sat, 24 Mar 2018 12:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521920052; cv=none; d=google.com; s=arc-20160816; b=XGca8quOT9qBlth6neQj0oGC5oy6vjBRqtxI4tRwHY7wMdxtWNbQACDIPsHZZD/QGh w7Hc2p/rRI2akDw6q5Af7d/5Q1CgKvsf4rlK8l7LyBE/q9Hg2cWgOx1NL7Qw9a/CMS2J sUJugfJCwuIokHG/vEo/M8dXSUUY5FwffwXIs8wYIJARptoVK9XsT2mPT3XKaCzb7n1/ hTjJ3t6UVtSA1iu+qpuhfU8vG0Jt3N38b2a3lHiZgCJYpP7c5F7mM2MxRH3DM0+QiF8D KIB7FvVXGybVtqEOxxTQBdIcoZUXPEUlgOHVjo2w1aH6/24ERJpmtEnqv+fQdeZg2mM2 arcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=vGq6SjSk4pWzyAE3lghLpii5LRSdMI9x4OfBceOCurY=; b=0qDVbu4xsFbO6rJ/MTVD3UvoCKx4JK2l0namroXABT2pv7ulPmBSl8UNJfor34nhoD yyuIyxoLN+/3QcXNSjdMJKZ+sG0fxxhZ9zMuDU+eVLIrHLaMblHe5omsLae1f4xiDF2i qLu/jjVHUd5u/c33xvJ1yjVwnJCbeZ4HHfA0xK3yL4QzvPIKi53HdBrUhG4D//6r0Jqv vZ7i3Qttdx59xIHqaAccFODF/9+Y7F51pABXYSQJoWaNZt+yky0/67JKGbBAltlUhGOD hEwDmCn9N2diuDM29p4VPTW6TgsX4NZ7iAUpmYJUqn57f8jRE09UylUNDZKVICWYh3kr STJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C/Jqr+Uh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18-v6si10956662plq.357.2018.03.24.12.33.56; Sat, 24 Mar 2018 12:34:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C/Jqr+Uh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752769AbeCXTc6 (ORCPT + 99 others); Sat, 24 Mar 2018 15:32:58 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:42311 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752633AbeCXTc5 (ORCPT ); Sat, 24 Mar 2018 15:32:57 -0400 Received: by mail-lf0-f65.google.com with SMTP id a22-v6so22799048lfg.9 for ; Sat, 24 Mar 2018 12:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=vGq6SjSk4pWzyAE3lghLpii5LRSdMI9x4OfBceOCurY=; b=C/Jqr+Uhp7U/xf5TgReYNa+p8CCXGU9DFZJ8IuzExrqNGDiuGGei6Z/cd0Lkcn8TO5 gGeROBfgenm4brS2q1bdOS/trpiatknahsg4uvFT0TACEX1UpoZVA2D8eTs/C50WsniJ uysQq2GWhK8iCciB/dn3giQg2OQvbu1w3PJqY9ILlJwa4SXxnb9gLSkM/PBrP8G2J+QL oOiNoekHy9aqcM9fayDlxRyGc9xy8+PUW1paC14h0rL3ZKzSShCbtEVJrgolMx3F/uqM SDVi265g9w8kZHkDtmPhbml8YrHyGwTFyqrXL5kCHYAkPoD6+ds/dYLLeVY6LARLm6mS L0GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vGq6SjSk4pWzyAE3lghLpii5LRSdMI9x4OfBceOCurY=; b=kOqMWBQWgqlz5+T9hBWCoQqPs1f5SO++XZ+njY7pX7PnXezMsYgUOGwZ+P8pts093/ 2XhooJZfAn0/gW+wZtOLvXVxpcxt1j/Xeh6Zc0VZ3Wx0Mxui9PfpKmYTik8tx1x0N8Ni iZg5j60rbcelSuGv2b2x1zxeMbWvlh3RBJ0ukT2iNPRUE7p7HEJ3SK5KV4Q7bzGVra79 xnzUw5B/kZZ6PWxnK19wOjIwWPRxlGiJVvpiaCESKGHXNGLl9/ScfUK8RewD6yZemRXT KVd+0no7N1WVBHyqdEw+x5JjgwGMDkLq/jTcAFcSdnq4TvYbH6sVDtlabiaSYWGieVZf kQYw== X-Gm-Message-State: AElRT7FnlxYxna4ncmCVWHn8acK2Xj1cqQRxytSTjWl7n0ifnNR3784e J0gcdxes5260EsQbN3a7YAk= X-Received: by 10.46.154.71 with SMTP id k7mr17597890ljj.42.1521919976119; Sat, 24 Mar 2018 12:32:56 -0700 (PDT) Received: from esperanza (81.5.110.211.dhcp.mipt-telecom.ru. [81.5.110.211]) by smtp.gmail.com with ESMTPSA id n24sm2562428ljg.22.2018.03.24.12.32.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 24 Mar 2018 12:32:55 -0700 (PDT) Date: Sat, 24 Mar 2018 22:32:53 +0300 From: Vladimir Davydov To: Kirill Tkhai Cc: viro@zeniv.linux.org.uk, hannes@cmpxchg.org, mhocko@kernel.org, akpm@linux-foundation.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, hillf.zj@alibaba-inc.com, ying.huang@intel.com, mgorman@techsingularity.net, shakeelb@google.com, jbacik@fb.com, linux@roeck-us.net, linux-kernel@vger.kernel.org, linux-mm@kvack.org, willy@infradead.org Subject: Re: [PATCH 06/10] list_lru: Pass dst_memcg argument to memcg_drain_list_lru_node() Message-ID: <20180324193253.y653nm4z6sh7u2kd@esperanza> References: <152163840790.21546.980703278415599202.stgit@localhost.localdomain> <152163853059.21546.940468208501917585.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152163853059.21546.940468208501917585.stgit@localhost.localdomain> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 21, 2018 at 04:22:10PM +0300, Kirill Tkhai wrote: > This is just refactoring to allow next patches to have > dst_memcg pointer in memcg_drain_list_lru_node(). > > Signed-off-by: Kirill Tkhai > --- > include/linux/list_lru.h | 2 +- > mm/list_lru.c | 11 ++++++----- > mm/memcontrol.c | 2 +- > 3 files changed, 8 insertions(+), 7 deletions(-) > > diff --git a/include/linux/list_lru.h b/include/linux/list_lru.h > index ce1d010cd3fa..50cf8c61c609 100644 > --- a/include/linux/list_lru.h > +++ b/include/linux/list_lru.h > @@ -66,7 +66,7 @@ int __list_lru_init(struct list_lru *lru, bool memcg_aware, > #define list_lru_init_memcg(lru) __list_lru_init((lru), true, NULL) > > int memcg_update_all_list_lrus(int num_memcgs); > -void memcg_drain_all_list_lrus(int src_idx, int dst_idx); > +void memcg_drain_all_list_lrus(int src_idx, struct mem_cgroup *dst_memcg); Please, for consistency pass the source cgroup as a pointer as well.