Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4004934imm; Mon, 6 Aug 2018 14:52:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpea1uQp9BwkZJtXCtaKaTRX05hVNJ86VtnrkDCqEpNtV3eMFg+Asr402GM10MVoKrh7FF6R X-Received: by 2002:a62:1f8c:: with SMTP id l12-v6mr19145901pfj.143.1533592367496; Mon, 06 Aug 2018 14:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533592367; cv=none; d=google.com; s=arc-20160816; b=GFTN30wbN/TKfO7nXPvy4xQHQtdkIcROyqbm9RzXv19KHkEFPdOLBKi6qfUyU6sFW/ oMNiWIBhmRAl3027ZD/QyLzZdOojgHNJOlHi9J/XGSv10mnQKkuEnvxYsbYDZj7jjNja 92Sdm87XUYgeQEIZHTpIdvBhxdJiaHrTIqe1Nk/KNjfI077s3AvyrjTBbuKL2Qh8PxhH Q/bhaUR9EHaMI8TTCcq0raCdsU785QkJ/f6Rxl30wTa1C5UVoTfRpAkSH2XT+wwYZqf/ O+KReTOBdF9j1oaNYChyyEsh61YG3sWskAYrSMAff0cDn7jKSAKNpyllhr6u3bLP3sNT KbVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=CYPNUrzOit/m6eDwlnNAerqtHtfUsuqj0cN7WJ/sDSg=; b=t3NnvRWpmsvwuXrRzdENrJIo+xOGp3xkzxtekJrXluBhug2ugaZDjks0yWhbMqQEQh 5hgsuA0k543e0GuTACIoLkEFUoiQMtZ/6AkMX3u2ac2eZAerAE3A0wZdaawHLdL1HGPN K3AjNU8yacwwGbwXYAMv749aT0hpsktE9JkXpa/C+irp0qYrRd2Fzt8HSoj7xkjbOEvy WrPpTt5/KNMlVbSBTyBSKs6Uh1Bh5Nz4cDiNZrcb/N7ZeQCODswBJY6tUa1rl6lJwTt9 Go5ZK7PxV39i8AFiCvyLepFAvXwT2k01eJ68zh60Sqg2PdbACGW+AsizAWMzg7hd7Qgs UzcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DTp+SXvJ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x136-v6si16594592pfd.124.2018.08.06.14.52.32; Mon, 06 Aug 2018 14:52:47 -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=@google.com header.s=20161025 header.b=DTp+SXvJ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732889AbeHFXz1 (ORCPT + 99 others); Mon, 6 Aug 2018 19:55:27 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:38351 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731200AbeHFXz1 (ORCPT ); Mon, 6 Aug 2018 19:55:27 -0400 Received: by mail-pl0-f68.google.com with SMTP id u11-v6so6186608plq.5 for ; Mon, 06 Aug 2018 14:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=CYPNUrzOit/m6eDwlnNAerqtHtfUsuqj0cN7WJ/sDSg=; b=DTp+SXvJelsRjixbyK4pFnUGsXEa++emQ5OYKW4S0TkPR1aOxXhnNnQiRK9VJUMV6R nK8FjkceqNsbdN2Jrniok6BQ4vDsiTC+DuYF5gZxRG9lszpDg91HhfKBAIhE5fcCGrGH Afi/15H1P+ZAyITWW7baTiJj8dz2wLcOAdX3UEH4N+r3PGX2cx4Oj0oiTWSLV4MNWLD9 2LHjQZgwOhD7tHmEKBKJpKzlr/5WimvbMvXHgsJ6bosZg5fKTKUzzcgAu9m542D8KrZ1 x5ZIeQA/pJpe0kLbaPR6AYBI0cU0EnnqMAgRxXQWyQZHPhzuz8xGI2f4y6yPA+X5jLbC FK1A== 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:in-reply-to:message-id :references:user-agent:mime-version; bh=CYPNUrzOit/m6eDwlnNAerqtHtfUsuqj0cN7WJ/sDSg=; b=gJY2YnmLi7oE/skaa2mvDRJb3tPWr2k/4vYAHZHeGEpAUujRRMzNXopbky7zOr+1Mp UUbBXoFM22Ydp2jyttkyaX0Qoi/nrhXIinz3/h2y9MY35pjnfRyUgBJK5bb20w8v0rsd ddj0aj8Qy9fGSS16CAanhB8iUTDdvbc919+DCS5MeUOlgMHl21Xwp74b2TW0ou2F+qUY ZGbvapApzJOHjw5vEc6wPN89WOz2kcVAGp+73h4nYd8apRb/QJPcAOWVQEKsQ07stWLI nOd59BGb29QTwYyHeXT2UVsY11eMb1pgga2Mi1ZTvhND0+Dx+TbHhqX8ubtCJld4hRiR b1iA== X-Gm-Message-State: AOUpUlFnfgRENWiQMuALTJEStP894LURwh8TWQWereFbWj8oiXcYaNw3 ZOdZEGUKNGejVnsyffQN23MlnA== X-Received: by 2002:a17:902:3a2:: with SMTP id d31-v6mr15694458pld.287.1533591865587; Mon, 06 Aug 2018 14:44:25 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id c1-v6sm16251936pfi.142.2018.08.06.14.44.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Aug 2018 14:44:24 -0700 (PDT) Date: Mon, 6 Aug 2018 14:44:23 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Roman Gushchin cc: linux-mm@kvack.org, Michal Hocko , Johannes Weiner , Tetsuo Handa , Tejun Heo , kernel-team@fb.com, linux-kernel@vger.kernel.org, Andrew Morton , Stephen Rothwell Subject: Re: [PATCH v2 1/3] mm: introduce mem_cgroup_put() helper In-Reply-To: <20180802003201.817-2-guro@fb.com> Message-ID: References: <20180802003201.817-1-guro@fb.com> <20180802003201.817-2-guro@fb.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 1 Aug 2018, Roman Gushchin wrote: > Introduce the mem_cgroup_put() helper, which helps to eliminate guarding > memcg css release with "#ifdef CONFIG_MEMCG" in multiple places. > > Link: http://lkml.kernel.org/r/20180623000600.5818-2-guro@fb.com > Signed-off-by: Roman Gushchin > Reviewed-by: Shakeel Butt > Reviewed-by: Andrew Morton > Acked-by: Johannes Weiner > Acked-by: Michal Hocko > Signed-off-by: Andrew Morton > Signed-off-by: Stephen Rothwell Acked-by: David Rientjes