Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4249433imm; Mon, 30 Jul 2018 11:06:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdKnzZrl2bcVzTc6Af+Q5+PhIzgKlIa4dct1kVGDKFrabU7Ee6/sPzka0mlEsgErZ9ofI8q X-Received: by 2002:a63:b74a:: with SMTP id w10-v6mr17173926pgt.266.1532973994389; Mon, 30 Jul 2018 11:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532973994; cv=none; d=google.com; s=arc-20160816; b=U91RO2t6FJWZZzkTQFhnM+NRnO1zP2JwPQUsw/zuVUCA2MHl1lkuebmMbs8Fo2jJG6 J+J9ejtyXkhwWRqAAHs4T3kvMfGH+pRov47VI4uk9iyfcCN9991e/hiwAV4KTP4t6+uQ j5PqdMR+jlfexyMk8K13xY6NCvvm4+HbzeOK5gQHRcNYAZ+9GlpyIpSzLEr2mQysjsgw VXrUxVjjiLeoJ83d3tgSo1rV/Huw2BuM3WW0klg4zAxMRAnMxo6sJhWpzUWPvW3qo67y YTZMP+iSXeCuYcbX7B6tJsoZb9K0A0KfqWdXIiLpZW29nuSXJhdzBZcETXw18Q3kZkPf HR3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-signature :arc-authentication-results; bh=scuHpibUn0Le6Cs82Dm7fG+4MYqegz3zxv5qDEXXdWM=; b=uvUBSWj7atgjIEX3kJM7ahfkodBoNTL+9XB70bt8dbYKIDr6atHU8sA9ZGC9Uhfr6f UEXeUr27yWowBhx8jbTcT//9Ih/Su9fAXeM5GAWRaRhUIVa2k2bFizd7w4b8O9niwI9M t6MzTukAPMjcxw7lyevUFn0M8fAWMZFASlpfTN4HBbmayibCSTa5eqnt5nRWA3CxydVb nN1Al/4NWFmCTHGPu/qa0mtIQn5VyL8BH/bfIK84gNWApGX7iYsvaZ/1EOZbK9GpJFEH koZcMRH+S5KAMoWkC3wUeqb7ofPBu/4D4Tdnp4bNpTztTE5782+WmP+Kta/rKN9p5Xxa 2cjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=Rc1Qa18c; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=emb5oZkB; 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=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3-v6si11081446pgo.542.2018.07.30.11.05.56; Mon, 30 Jul 2018 11:06:34 -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=@fb.com header.s=facebook header.b=Rc1Qa18c; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=emb5oZkB; 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=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732118AbeG3TiK (ORCPT + 99 others); Mon, 30 Jul 2018 15:38:10 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:52380 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730671AbeG3TiK (ORCPT ); Mon, 30 Jul 2018 15:38:10 -0400 Received: from pps.filterd (m0109331.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6UHouvi010810; Mon, 30 Jul 2018 11:01:32 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=facebook; bh=scuHpibUn0Le6Cs82Dm7fG+4MYqegz3zxv5qDEXXdWM=; b=Rc1Qa18c+u7rB6jpduVm02w1pAa0wVN34GXkWkVCyloTP2pWIt23vZOpPIe8yps/CLp7 p5zdtxOjyqcHF6Xq/v41ukISEkKIrvwmQpfn3Giq3ulqV0xEXACPf3uWEpVWG4fRzl6P wajjwhpzn/nWyYR1AifbiJvxZV/m9Z83jM0= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2kj53g0ghv-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 30 Jul 2018 11:01:31 -0700 Received: from NAM01-BN3-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.25) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 30 Jul 2018 14:01:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=scuHpibUn0Le6Cs82Dm7fG+4MYqegz3zxv5qDEXXdWM=; b=emb5oZkByn82N4+xxB5IU2w8U82y+506VVFjXZsv8lW8biYBbyfz+4dZTXq3ILdB1e9srjfUBh80JJHBZX+MUbXRISA6Xtsxje2N+9N/HTpItfoyJsj60bkubpcAqrT8wGWe8hMqt7IGUidNQchkAYf0n3urxrSutCaQrCtDqV0= Received: from castle.thefacebook.com (2620:10d:c090:200::6:484b) by SN1PR15MB0175.namprd15.prod.outlook.com (2a01:111:e400:58cf::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.21; Mon, 30 Jul 2018 18:01:24 +0000 From: Roman Gushchin To: CC: Michal Hocko , Johannes Weiner , David Rientjes , Tetsuo Handa , Tejun Heo , , , Roman Gushchin , Shakeel Butt , Michal Hocko , Andrew Morton , Stephen Rothwell Subject: [PATCH 1/3] mm: introduce mem_cgroup_put() helper Date: Mon, 30 Jul 2018 11:00:58 -0700 Message-ID: <20180730180100.25079-2-guro@fb.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180730180100.25079-1-guro@fb.com> References: <20180730180100.25079-1-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2620:10d:c090:200::6:484b] X-ClientProxiedBy: MWHPR15CA0060.namprd15.prod.outlook.com (2603:10b6:301:4c::22) To SN1PR15MB0175.namprd15.prod.outlook.com (2a01:111:e400:58cf::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1aa46cf4-b16b-41ec-0512-08d5f64678a2 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:SN1PR15MB0175; X-Microsoft-Exchange-Diagnostics: 1;SN1PR15MB0175;3:EObc8fDgTFaQTwI25z0yY9fuqYoJfJFPjuU/eDG8GHgIuSMJJ2qGgIwugF2VD9LwjoTyzPTgv026rJ1SyYp12d1jCwDpA4Q3dqrLcLLGvgPcydlvDQ4jQQ4NEHVrCzaruavRWot8Mf81Ib/hX4E+TmlYwNdrSomNqgQAVXGvhdGYbeMhlrS5vvLyl+OZ6URm+pPluiLbztMRYeF3q2jPtkeIw8TjCotwUODbY912sYh1nWi7vlc/9OsFsP2U0MH2;25:EvHC8W7QxeujOCQRK7Z6JtPCszhR0XOjET2jQfMxvpil14yh1YP8n6mbMQs1KyL/Nr+cFhupnPfKURl1syevYD1gftNgMgOeByZ5Q4I1fdirHjtelCWS327RGWqzcBzVFA5ByD/n2EOMPEfM/TQ8EG7fS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WpEgAsH3sktXYuIcuz50YBmMGByh3bEYnnmXJ7tAUVjVlS6BmARbVwe8Mc3gFk04+RaU78CcP02a7jTEbdpYOOTejJ5W5GCqZeaz6VKI64OGuLJAwSgmK6hqbaD2pgnbhV9BbL43Ro6s0ibbrAyPknh21Fg4W88HOwONE/ZEd3Pzxf8ARqSARM57kx/wQ1fsT/5pExIA3tmJ48B4ALUNWqcsjJBzNS/sv6K3WR+1tVe9DHBl1kyCgUkdL93CsboxlRtSPMoPO0QwoHd3kzuWdYBuRNWJ8WnEK94/2SwpU/fGMbyn3ZF9nCZy+px6Gm48BRzsP3rSs6JXlLz29vRVatTTVUQ4hcM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(211936372134217)(42068640409301)(153496737603132); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231311)(11241501184)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:SN1PR15MB0175;BCL:0;PCL:0;RULEID:;SRVR:SN1PR15MB0175; X-Forefront-PRVS: 0749DC2CE6 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(346002)(396003)(39860400002)(376002)(366004)(136003)(189003)(199004)(36756003)(6116002)(8676002)(6486002)(16526019)(6506007)(386003)(186003)(1076002)(86362001)(69596002)(76176011)(52116002)(51416003)(52396003)(81156014)(106356001)(966005)(2351001)(105586002)(97736004)(8936002)(81166006)(305945005)(7736002)(53936002)(6666003)(50226002)(25786009)(53416004)(478600001)(6512007)(6306002)(7416002)(5660300001)(2906002)(6916009)(54906003)(2361001)(16586007)(316002)(11346002)(446003)(48376002)(50466002)(47776003)(476003)(4326008)(46003)(68736007)(2616005)(486006)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:SN1PR15MB0175;H:castle.thefacebook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR15MB0175;23:amZL3cxWKSlIupBBdSWTHL2RrzFAvwVWfLi4okpZJ?= =?us-ascii?Q?l5eqBTshKVx5ycizY/dNIPj82G6PwiBLHo22eYAEeqHGOa3Hyg5f/cMkpnG3?= =?us-ascii?Q?yxJAAPaHh1ZATnTDm9ndNl2uCVAolBSDxXsLdKsL7gM+4UgfP7M6pkblDa23?= =?us-ascii?Q?tc/vKDxV/MRdCpUB0VKRCwCMt3zHJty40IWIzurzmZxq+Mp2JAbPG4JtAaSA?= =?us-ascii?Q?rFlTtFxJmAOMoTF2mewOXibu7bCIern49QKryqsKNcmrL2nFZ2NK2xdolhBO?= =?us-ascii?Q?yLugsl1gBlngv5sv0+fCpurataZJyiVdyE8hm4960eW/RSxbFa6smEBikiyS?= =?us-ascii?Q?5Qx0nXZgBDAPmNj/yym62iy7KKG7lxN9VPMlOZmqDA4+olfvcNWjPObixdfl?= =?us-ascii?Q?xT4BriGzHVYdLVhPCr7L7BanqHP1PKLy8Bzk/l8nU2TCkQM9vKpYHy4W7xXs?= =?us-ascii?Q?8aPkYe9JxXiXPq0nf2x38tJg3F2GjdFVCptIxyIy1DVJSG6fHvRh2WJckmkN?= =?us-ascii?Q?H/GNjPRjhm7cRawltqtf8MW1YVJyFmdM62BcUmWE8FyAZr3titwa2zHk0HDX?= =?us-ascii?Q?0gNhhMZ1xBwtaYl/5Bky8wYs7+oZRCzcpl3GmtSV54EY47EUn71OQah2E5vP?= =?us-ascii?Q?ltMRHyi9+ZntNNLKP/KKAIZsKSLmB3mQyyjmWd4bQJL6/T1EvEBdsWmgtIu3?= =?us-ascii?Q?94RQUOkNJDPHTLAAB2IDPtEEexd07AkZaihUl6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HVyx0lRpuVBVZc3QjxYOgyZ6ENZfHLIgdEVPWDFpzOGIE4+xurt3ykLTvIJ5Mf5eZYtmGxpt5lkuHzI1W85bBjEJEGWFQe0YPYYvpJ4eTfdZYySoHlgzFMnFhRzmjEa0aPHHITLEtgtbx/eyXVpckuj2pyIlUss8= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2018 18:01:24.6247 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1aa46cf4-b16b-41ec-0512-08d5f64678a2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR15MB0175 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-30_08:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- include/linux/memcontrol.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 6c6fb116e925..e53e00cdbe3f 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -375,6 +375,11 @@ struct mem_cgroup *mem_cgroup_from_css(struct cgroup_subsys_state *css){ return css ? container_of(css, struct mem_cgroup, css) : NULL; } +static inline void mem_cgroup_put(struct mem_cgroup *memcg) +{ + css_put(&memcg->css); +} + #define mem_cgroup_from_counter(counter, member) \ container_of(counter, struct mem_cgroup, member) @@ -837,6 +842,10 @@ static inline bool task_in_mem_cgroup(struct task_struct *task, return true; } +static inline void mem_cgroup_put(struct mem_cgroup *memcg) +{ +} + static inline struct mem_cgroup * mem_cgroup_iter(struct mem_cgroup *root, struct mem_cgroup *prev, -- 2.14.4