Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1134077imm; Wed, 1 Aug 2018 10:44:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc/NI/aaNO8RW9WkFMTYURYVzaz9t6EH0B3rJ5UTJZBn8DxkCtnYg7NP24bT+igm73yisP7 X-Received: by 2002:a17:902:bd97:: with SMTP id q23-v6mr25725947pls.311.1533145496704; Wed, 01 Aug 2018 10:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533145496; cv=none; d=google.com; s=arc-20160816; b=RUDkVMLix2WH9Of7n9rINWM95vPAmPEwxWJOGbELDhezmYgE+uJd1/rsYCSXY6gA6j hNsoMS7jjEmTgnrCbyCUFUGrmTjIBDkZE0wCMlhouhlYiY2Zu/vkf0lJlGKPcM/QJMzZ Y4hZxiOkcZ7/dnHcLc8c4kwsiwudGhG3JnzGzTo5jv+GSxNwo5Y3WuR0gQXLdBJ4Tw7k /4H05nBrCRcCRe7FklM5IJypytj4nKgTKdkEA08YzkdoHLSUL4igDY0GLjMPm/pdyKZ+ GkYUCSuEohKcTeqrsuHfAM/vN0I4hh9b/qeS9DPLv00lEp+NSHOHmUftcpy8iFUqpCP/ iDiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=LdYOrKffseY9Ibr4wJLPfivG16efjzPdtcBxMjZGAcs=; b=iLFLqXf0KN4KitcnrOMzp7H7WnGHdu2Pl4fDXlTl7dymX1bsdJACfrChIQ/Smj4FN+ ytxUS2MSZIJ/j+YDjAXWNvnsXc+8BeOyhT5CLBy1VN2zwMy+axzZvGZrWXIdZCTynaM7 SRYpZtbY9N+THjzrZiJhSqpY3+LqGUKUFCceCsj85NoUT5e4MJWcL06JL80RaC8C3YqV FwpYC+T//pBt2DA0LSJNhke69nxWgztyE/mDW3YmOi7jaRxqPc0AWPNII77WNGrQi+d6 YrTnKE/ImsqkeM813uNpNhMCMX8A3Z1BwBs10pmTILR1V/CCgrfZv5DZII0D8RNlP11V vnDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=XK6G7TxB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s71-v6si17738493pfa.367.2018.08.01.10.44.42; Wed, 01 Aug 2018 10:44:56 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=XK6G7TxB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406842AbeHATO7 (ORCPT + 99 others); Wed, 1 Aug 2018 15:14:59 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:39348 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390368AbeHATO6 (ORCPT ); Wed, 1 Aug 2018 15:14:58 -0400 Received: by mail-qt0-f195.google.com with SMTP id q12-v6so20750806qtp.6 for ; Wed, 01 Aug 2018 10:28:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LdYOrKffseY9Ibr4wJLPfivG16efjzPdtcBxMjZGAcs=; b=XK6G7TxBRwuw1X/7Bx22v6NNxJte6ntY943o337w4gINLKfgCRy7iwuR0AcsjG35wW OyX9xq6433Fks5YjFE/7icaLp9iWvNkDtLKOq9ojiYaLo+MHoNd2Hg+5beXt9TXKQ5ki rDNw0inbUmjSnV+uM5Po8UFvF/AabMWTU2UB3kXoIloCBGZY3Ltmx5akXITAoMRQpv/3 xRscZFRwJQX8QDvy0RFoVJ8lNqttnAqrrkxYo+/6qtuAd8pxyi3n5h35cLER46dFXZxw Erit6bBGkndb0ZxAKwDeMYkQpi1Z7omDOvUOFhgs/5drr0+wf0cJOf1ayWUVhZIeJ14X 5JQg== 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:user-agent; bh=LdYOrKffseY9Ibr4wJLPfivG16efjzPdtcBxMjZGAcs=; b=pj849IOAY31C+Mn5DPTCMt+m/Xb0AV4gRb72dEQihCKgyAY6VXsNXAhPflHUgjnB8s on3rqgz6VIF7opp2c0NWAi58QTZ7i2F1S6hH+mG4Yq8tEEOj+rV1HVdXSfjVGs1NK1vM CDmgo7bZHKbAOGQpMMgXrADMDiya3YY9gsf9qScKfH5ZpuNLXttoye5wYkQHkQTTqMX7 zgVH5x3G7PqNZVR16qBzrx+eoe+Mb01s2mZN2hSoWMIIkbiOHJcviFFw15gsPoV0J/uN Nina5cAQYFZL1+cX5OklMbcCjrGfFFGXTubgYpR2zkz3PKe10HNLZ5CEYKIeK33HLfkp S94A== X-Gm-Message-State: AOUpUlHXZq2bVk+WEsl/BrnhuH0Z57E7XhLDO0wjHI3pUGLYPxQ7DzPG QMF7Xbs2IuybDFQYcTzO/BcWaA== X-Received: by 2002:a0c:c90d:: with SMTP id r13-v6mr23953155qvj.45.1533144494632; Wed, 01 Aug 2018 10:28:14 -0700 (PDT) Received: from localhost (216.49.36.201.res-cmts.bus.ptd.net. [216.49.36.201]) by smtp.gmail.com with ESMTPSA id y8-v6sm13802635qta.42.2018.08.01.10.28.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Aug 2018 10:28:13 -0700 (PDT) Date: Wed, 1 Aug 2018 13:31:08 -0400 From: Johannes Weiner To: Roman Gushchin Cc: linux-mm@kvack.org, Michal Hocko , David Rientjes , Tetsuo Handa , Tejun Heo , kernel-team@fb.com, linux-kernel@vger.kernel.org, Shakeel Butt , Michal Hocko , Andrew Morton , Stephen Rothwell Subject: Re: [PATCH 1/3] mm: introduce mem_cgroup_put() helper Message-ID: <20180801173108.GA11386@cmpxchg.org> References: <20180730180100.25079-1-guro@fb.com> <20180730180100.25079-2-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180730180100.25079-2-guro@fb.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 30, 2018 at 11:00:58AM -0700, 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 > Cc: Shakeel Butt > Cc: Johannes Weiner > Cc: Michal Hocko > Signed-off-by: Andrew Morton > Signed-off-by: Stephen Rothwell Acked-by: Johannes Weiner