From patchwork Mon Jun 18 09:44:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Tkhai X-Patchwork-Id: 10470515 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 D32036029B for ; Mon, 18 Jun 2018 09:45:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C44822853C for ; Mon, 18 Jun 2018 09:45:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8DC22899F; Mon, 18 Jun 2018 09:45:10 +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 2FFA12853C for ; Mon, 18 Jun 2018 09:45:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 401506B0008; Mon, 18 Jun 2018 05:45:09 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 38A3C6B000A; Mon, 18 Jun 2018 05:45:09 -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 206BB6B000C; Mon, 18 Jun 2018 05:45:09 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl0-f69.google.com (mail-pl0-f69.google.com [209.85.160.69]) by kanga.kvack.org (Postfix) with ESMTP id CC5316B0008 for ; Mon, 18 Jun 2018 05:45:08 -0400 (EDT) Received: by mail-pl0-f69.google.com with SMTP id c3-v6so9834491plz.7 for ; Mon, 18 Jun 2018 02:45:08 -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=jzrhUnLlfby1gTgUilKw9jqsZ/m1V4sHluMgVAMYm7Q=; b=IKiSEipg/igdbSfDrLN+5d6PgduhhrdOGzW6sgtq9fjHMTDmYwPsHPYyh8MznQf4eR 7YXwQhlJP277yvNqKOU0Cq8RNQAUSc6sPcaFhkGOoYNBsVPlpJ6q22sP8F34OEbjXMQ8 OE/GQ0lfJTUnVjdKmhgd51OzdMtBWIc0ozThWu42HqFaydHP/liyD0H8EmJtfSNjHfe2 rrq0ZUIHLLlj0U0lGmBrOsy8mMaSehz2mvgKmHXSp5NiPuHFJRn8wdsNba2EHD3SrAbc 2n4k2ywsrMOB6/URSZNsRf2kViS4vxaorc7FRXttuClIW7TF5JBxQmxwIb6RjJ65c9eT wPOw== X-Gm-Message-State: APt69E3susGoyY1PPBGTsSaTZSnk431AmdrW0lnxdbz1cI2v2FTLpoYZ Me0G3WlEuhAKXHW/9KELvZZ1APKjveb3DJWpDU77rSv0N7i4wxZxLpUhS9cyE6MH8DZ8CNSwZ0a nxlfIe/z+HVCgeQy/iBZmcU4XvF891Z+A5kAMJQOKwXRB2FmIZCPi8H9dThTpD6d9Tw== X-Received: by 2002:a63:7553:: with SMTP id f19-v6mr10579243pgn.314.1529315108503; Mon, 18 Jun 2018 02:45:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLw5vJ2pGejAT6QHlVlb4LigNwBQ+QMFErgx9Kll9z7S+f5sI39Q94AsTnhGnUiDijxszcJ X-Received: by 2002:a63:7553:: with SMTP id f19-v6mr10579210pgn.314.1529315107727; Mon, 18 Jun 2018 02:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529315107; cv=none; d=google.com; s=arc-20160816; b=IhIzM5bqB3nQDxQ9orLHKs+J3SaCU+yIkx1VYnWytJX3imYnqtopebXsJtERePgNN5 mMBbdsfEhaLSgz4M6Apx2US/Q37l4C0osTf+90UGx6FJwS69A5VFyvSwxqoD0wsyBrzq lYFNa+h1oR16CkjFWQGLLIzDgd/H8qqOt8GA8zjgFiF+6AMVOUlEa1kRsnNx4UyWkG0E +sJd32nN+QmPpYIDSNRY+zqyG1TxH7w029jl4BEoY390EgWXCnuqpv3dVZ9ULPcB/naL oygzaIFVDkcEghGkIQpUskcGuaU32zX+FxpDkSKLXT6cjoGq6fq76ykrWorA1tIjbgDO 7pkA== 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=jzrhUnLlfby1gTgUilKw9jqsZ/m1V4sHluMgVAMYm7Q=; b=Kq4qVlnQ6ukkr1imHpEO+ie5os2jWRImEL2lZb+pOmevkF7WaJxcKb0TI69U3D9s8z TDzR5ftwV3xk9hktKyidGOQQN154edniW4bx6xsskbOtIVKgjQ3MjBGQVHI3vNFoIFu/ UjVGDUHF3gsvkTLpU9l6/kBIQKcTzF7p+OozhY4zKF0A40E6/HGpCv2/7tdpjDcivnau y5qh6jdOpD3rd8clrPrUSyj0aHBYey72VUFNbbQQ2rKi9/6jiC52vW+7+iG5IT0KocZy H4bD0ExrD29muRLYpA23oFrwFsItG8gtyCq7GFnmiDFksf1G5NWeOpCRF225mLB8OvY0 pFLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=AiOnHTYf; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.2.97 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0097.outbound.protection.outlook.com. [104.47.2.97]) by mx.google.com with ESMTPS id m28-v6si11805363pgn.197.2018.06.18.02.45.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jun 2018 02:45:07 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.2.97 as permitted sender) client-ip=104.47.2.97; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=AiOnHTYf; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.2.97 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=jzrhUnLlfby1gTgUilKw9jqsZ/m1V4sHluMgVAMYm7Q=; b=AiOnHTYfkXY6BtfaWEoBRxR/SIdmMbKyXiKDozWCErSyk+U7jwRZAIacXBqf5hxZ5bGOHO2dWjCcWxAFeugJlA+hcTcyzbpMKZCzb+4Vlzv7EBuJPOxF07c/mNO9fpCq/g8naFEsb9J0poeTSBMETchU7vvAKABpsNI5lSxWcGQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) 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.863.16; Mon, 18 Jun 2018 09:45:01 +0000 Subject: [PATCH v7 REBASED 01/17] list_lru: Combine code under the same define 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 Date: Mon, 18 Jun 2018 12:44:57 +0300 Message-ID: <152931509755.28457.5259293881050664963.stgit@localhost.localdomain> In-Reply-To: <152931506756.28457.5620076974981468927.stgit@localhost.localdomain> References: <152931506756.28457.5620076974981468927.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR05CA0359.eurprd05.prod.outlook.com (2603:10a6:7:94::18) To DB6PR0801MB1336.eurprd08.prod.outlook.com (2603:10a6:4:b::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8a7ff551-c4ea-4351-563a-08d5d5002ade X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:DB6PR0801MB1336; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1336; 3:6w27ADKVAXzDeLgOcuC6H6cUOkoJ2no7eAgQZgf+J4t70jdmUwJrSSl1TUOTbAaZlatzChzL6g4Ryt/S6zjZSCJC3Ot7vgFQw1FOkPJq+IvC3Oun4jGkTWtooqcAvqcbpAgmWyMMulI1WG0/krFyMncihJsiu8V6GfZrSdw7rC5MC/jcZlKROtEJofUR0vxpll3ANVUevy6lO583Bx/MY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FbABfOBqy8AVAXIwV2LPaVthfmf4Jvhth4eM8Emq0T4i8qVSDnfwngonvpGXAvdkvnICpte/RFfnfRhsIkwE/PfbkGpi0XbP/r+lOFpiUOkyS+/9N8lb6KRH7eKQmiVi/or; 4:maef67mP37A7OjaOmt521H8h2eFDyPsfWUDWwn5NAD6d7CtDnqECrZ+61GJsNC0dZ83T2xowJa6FlHUdJZhCavfeS8OCLNl9Kr7a30uOEKZdlAd/AgzAciyeqba7a8qRwGJt0cCZJ667tjvk4BPsKkUm2VtZ4msC99rBMmEkFBg0VVdmWeVJe8RLSVabrHf6NT7l5LvyY1/Obza18+snBQ8XSUQk8eZve0UTP3dttCCPSYj6KgPIz7ECOr77ySPGZ08pGtnnfiqmO7vwH2qTDRQtaYgXRQFggcLm4CBZPM2BVWugkM8KZEVMY1VkzA5hcPZ9GzLb+7yBN4QP3fYOaIpbSrFLrMxDC6MEL/pxDL5m+lUXM0IwDJI37Ury5Aj9 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)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:DB6PR0801MB1336; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0801MB1336; X-Forefront-PRVS: 0707248B64 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(396003)(39840400004)(39380400002)(376002)(346002)(366004)(199004)(189003)(47776003)(50466002)(53936002)(39060400002)(66066001)(103116003)(25786009)(478600001)(26005)(8936002)(5660300001)(7416002)(305945005)(9686003)(81156014)(81166006)(6116002)(6636002)(7736002)(86362001)(16526019)(8676002)(186003)(3846002)(6666003)(55236004)(58126008)(316002)(105586002)(33896004)(97736004)(52116002)(106356001)(230700001)(76176011)(7696005)(68736007)(61506002)(2906002)(956004)(23676004)(476003)(386003)(2486003)(55016002)(6506007)(486006)(446003)(11346002)(921003)(1121003); 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?MTtEQjZQUjA4MDFNQjEzMzY7MjM6THhUU1BHSjM5WVpqQmVrRzZST1hKNjZD?= =?utf-8?B?dUxHbkpXMk9KMEthTUJIbi92Y0h4YytmVmd2UUdPM0lWNXhLeFhBT2pqajRn?= =?utf-8?B?aXp6Y0dJRENpTGREZE8vTkRtWEpESFNJWS8vcFpiYjNpN215RE53VnpyUWNK?= =?utf-8?B?elppV2hOek1ISmtGT1Q0MnU1NVhQdUg4YS8rbUs4d0VCc1lXMzkvNlBOWGtj?= =?utf-8?B?WjJiQk8vaXk0eHlycVdUZWhpKzBXd1ZYVjhaU25vazRSQ3hjM2dTMTJDM1Ji?= =?utf-8?B?YkV6VmpocTRJMkxaZUozYVpRUThSaXF5UGxNaDVIQUJvSXFDK0RkYmtMZEUr?= =?utf-8?B?RG0rd01QalJxUWprbnc1OWRNdHgzN25UaXF1Qm9TdUJBeUxEYkZMVHhiVTI1?= =?utf-8?B?aUVKZGNIRlJaR09SbFRrZFRBN09Va1NTL253YW9qaFRKMFNRVlJnc1VabkJD?= =?utf-8?B?T3pQNXBHOWltalJaU2NBTFRzdDkyQzhnUjgyQW5ONjgvS1dVS2RwVW9wN2FZ?= =?utf-8?B?b1h5eEpBTnNkekx2cW9Ga21DUEdMRnBWSVk0UG9iYmhzVWJtcFh5MVlUSy84?= =?utf-8?B?NUdyN1JCTnFNNFRscVo4b3hpOXE5dmwyNmdSWVI3S3EwSzNyK2E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E6uK9gTA4RpUobE8wt3lr1PvFnCNWOu2bs67tO3f0mIA7J1tiqIIC4sjkqLiqc6Jurl/mpJYoZgvZFqExBlQ+WJQs9hiR4lJIUuO3b1mTsc5XXnDpgOAflMwh5BGm6VEjHPPk8Bsv5l5zpVtUDv8IpIg==; 5:PVBc8t5HaP+x5fxJcUGEG/lCvErnweIi0wgvSNK3GEgWiN0YAi9G9nFJTjmEhrDFEmpepjOwo1giHQl08LYCn2faHBwl496SDXtN6lAB9RL6a/6xwB+vzdvVyemf7pcuP+0838gEznbJ49QUwaCT7HtdLl0U11uHaxTzpsAooIM=; 24:D4iay+UziOcXZxPOuePM0DSO98O3xJZ7vm9y+r3JjKkg7fnw8ZHPkTeRhcDlJSKl2H6a2ieP/QqpLzpmLw3waXeub+PXsD9K8+C+jpk82Tg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1336; 7:zhr7KpTbzc2a7dMeVZ6bCLFbp/UE4jZyMwpTLeayzwkkUtIh8XiTC9bBMv2StPDx888cDkZ7t3uqY4+NPSLVecC9r+nQsk/kEvo2wGaJHddWnbdkXhzE6BaQP3lf+BTKsLQk4A8UxskOVfttqHRJbPy5vgsKt9/AijlOxMRvSK18lMTHzj0qlxscAZ+JEu4eYUKSJDQ9kRhk8aFHsdOtyDT+uzaqMuQB3lVzqmAkilsDy5KpIwKhG+kh3IzRMUNa; 20:OEfjnlTT4YnBV2zw00oU1tosoAn0cRTxFhStmK57kM0DbJ1T9k7LhmDz0oqJlOsx8hElmTzUAv+kwcHy0z0tfMAKyRsnWy5SyMRHYtDwNHlzcUF9ArNqT/nGj1VG9iyJ+C9Y/CusSYyAuIznzaV6YOoGGVy+SmVEJs3MqnYDMcs= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2018 09:45:01.8410 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8a7ff551-c4ea-4351-563a-08d5d5002ade 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 These two pairs of blocks of code are under the same #ifdef #else #endif. Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt --- mm/list_lru.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/mm/list_lru.c b/mm/list_lru.c index fcfb6c89ed47..1e3e2f3a2a64 100644 --- a/mm/list_lru.c +++ b/mm/list_lru.c @@ -29,17 +29,7 @@ static void list_lru_unregister(struct list_lru *lru) list_del(&lru->list); mutex_unlock(&list_lrus_mutex); } -#else -static void list_lru_register(struct list_lru *lru) -{ -} - -static void list_lru_unregister(struct list_lru *lru) -{ -} -#endif /* CONFIG_MEMCG && !CONFIG_SLOB */ -#if defined(CONFIG_MEMCG) && !defined(CONFIG_SLOB) static inline bool list_lru_memcg_aware(struct list_lru *lru) { /* @@ -89,6 +79,14 @@ list_lru_from_kmem(struct list_lru_node *nlru, void *ptr) return list_lru_from_memcg_idx(nlru, memcg_cache_id(memcg)); } #else +static void list_lru_register(struct list_lru *lru) +{ +} + +static void list_lru_unregister(struct list_lru *lru) +{ +} + static inline bool list_lru_memcg_aware(struct list_lru *lru) { return false;