From patchwork Tue Jul 3 15:08:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Tkhai X-Patchwork-Id: 10504297 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 78ED9602BC for ; Tue, 3 Jul 2018 15:08:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6502528ABE for ; Tue, 3 Jul 2018 15:08:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 591DB28AD2; Tue, 3 Jul 2018 15:08:58 +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 00D7E28ABE for ; Tue, 3 Jul 2018 15:08:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9CE486B0273; Tue, 3 Jul 2018 11:08:55 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 97E096B0274; Tue, 3 Jul 2018 11:08:55 -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 7F99E6B0275; Tue, 3 Jul 2018 11:08:55 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt0-f199.google.com (mail-qt0-f199.google.com [209.85.216.199]) by kanga.kvack.org (Postfix) with ESMTP id 55A0C6B0273 for ; Tue, 3 Jul 2018 11:08:55 -0400 (EDT) Received: by mail-qt0-f199.google.com with SMTP id o68-v6so2420713qte.0 for ; Tue, 03 Jul 2018 08:08:55 -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=DHTgvwNcEz1UMo0tHfHk7Ou+OelPDIrwNG1onEdIKqA=; b=AR7qzgX51IRo+j7ax942BDQhQmCTwpgjB29ZMf1P68+c+ERVv7bpIT6/ll9+k3uu8i zWFGpNobafFnKInh4Rw2nJVSRQioSLLrZGUtfPby3D1h7mCD9tkeRCht3nlniQaiRakp ymotzznPvlMTRVWadZNxl39apKXlJHtRHIQ6FFGbNuhBQjwwue/Qr8sKcWihLbVac4Nn LlcpPjUdMLHgA8n13534RCCqwyEHMJbse0Vr6hvONbAaLnXp+E/LLGQi/wJmPGYmjtJc DnENWHRWwLdPqAvhUm6VVaIOMwPw1L1sPOqoaFOGOy6XHXoY54TkNZ5TTUaf0RtE3fEd oKcg== X-Gm-Message-State: APt69E1kmSwT3up5yLJ9FB5izcSJGhzvxqJLR8AA0t6Vg1zxV3gtFLDh RDbQGgCryuD426cgi+9+QoXPZqvkUJITLD2O24uzh/fbBe3gEFxwL9FVUOemyErFYBaXUUJww5f QO77SZpdCiDW95AIMtYMp+eZhh7jARL4+VzjfEhKBCA7ZxjWodVkty/vKYAXOqlr74g== X-Received: by 2002:ac8:3417:: with SMTP id u23-v6mr26597432qtb.237.1530630535045; Tue, 03 Jul 2018 08:08:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe8vkfjSW+YKUrWiiJhMKXD+soof7NNCQo+r4R+0u6u66fZJqY5AoPboZy+IKuHYSPPt877 X-Received: by 2002:ac8:3417:: with SMTP id u23-v6mr26597356qtb.237.1530630533993; Tue, 03 Jul 2018 08:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530630533; cv=none; d=google.com; s=arc-20160816; b=plHOxEa/FRTR/+0f0yjoZhlX2gKQzoa+aG5RdPyX7mGhgLaHSL3Gns0tui4FMqvPzM qK4kApT5hdTws/3WoTQsNcfHPt5xIw2UOmW824HwOPl8RF3/wAL2A+R2E4lG4760O1y1 DJYeMj/Z80ML1W6nIfNwYZZ8bk1paRqwX/RgeuZHhkgyoG6Onm18Jsah3iPPUbPyNmvS gZOHwt0Rzu6iXupSjB65QHqhgyfoU7vugUGRKzYoZx+pgtnRLfuuL5VzzgLnzOpnJSPl sRZi+CzhC4k9ID0AUxzhHijIRobZ9OciEnsjsibsO5TC7jF/FNF75ff2eTk25gi9I1UF Np3g== 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=DHTgvwNcEz1UMo0tHfHk7Ou+OelPDIrwNG1onEdIKqA=; b=UYoTlL8ml66OqPpw5HCWlai5KMUo7JHH/TqoXnTVWdKP+Vf8OzEXPL0cbGE3ScUu0+ TMvuQhHTnnPCrxpZ81ZJC+2JfGPF6ZOFuMGgU8uGaARAG+FmOVC4vLw4IbvuAGmDc8F3 iPCMm5KN8ianADmEmutWdSL/sN7j/UzUFvNMBMl0aUGQF/uGpezFzTcc4GC/dElfk9rX jsrC0jDtbiYFziRhIIFZG6f6URXFfeooimi2hb9oEqptUKf7DevAjvfFtnP0dEBMKHQb qfhTdrTA06PZRRZtku7Xkm2NALSK+VuDYq5GDfxPK80PgfrbeXfwTD5V4qj76uKm2yXa tWJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=hOyVd5Ba; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.3.102 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30102.outbound.protection.outlook.com. [40.107.3.102]) by mx.google.com with ESMTPS id o126-v6si1283792qkf.173.2018.07.03.08.08.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Jul 2018 08:08:53 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.3.102 as permitted sender) client-ip=40.107.3.102; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=hOyVd5Ba; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.3.102 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=DHTgvwNcEz1UMo0tHfHk7Ou+OelPDIrwNG1onEdIKqA=; b=hOyVd5BaVJuarGPEGOQQfAAXMefyTHCl91Fp214RXNQ4bRUMZWjKjhYngMYfAjVUBXtzmEq0a6dssRHkcqOrmdmw9DayGCAqivdfDjMhJWhQdGD1RyIRCROc3AKzSH7Cg1g3qZxbX+jUCCIkAXUVczIiAWQ8xH68U3uMP8+sr8s= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (185.231.240.5) by VI1PR0801MB1343.eurprd08.prod.outlook.com (2603:10a6:800:3b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.26; Tue, 3 Jul 2018 15:08:48 +0000 Subject: [PATCH v8 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, akpm@linux-foundation.org, ktkhai@virtuozzo.com Date: Tue, 03 Jul 2018 18:08:45 +0300 Message-ID: <153063052519.1818.9393587113056959488.stgit@localhost.localdomain> In-Reply-To: <153063036670.1818.16010062622751502.stgit@localhost.localdomain> References: <153063036670.1818.16010062622751502.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 X-Originating-IP: [185.231.240.5] X-ClientProxiedBy: DB6P193CA0018.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::28) To VI1PR0801MB1343.eurprd08.prod.outlook.com (2603:10a6:800:3b::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7a91cd87-8e30-4886-d997-08d5e0f6e2b0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0801MB1343; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1343; 3:myGW0fF/MWCHHxy/raWTrktUMR+VW0rjUiw5jYoaA/Nc6yqpmoJstj6EyRIUppZCz63t3DC8cnNpC+hmYgN0yvIIXINAXnz2Y452Xa6xsU7FDml/xXUnBQxo+InYM/Pjf0oiOTB1+n3h+NIdSPZ90CEN3mpkxdHHgbmojkX5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IyL7qQeECoCAg8CrpGrS0bGCScIvf7S1V5nsWXh8dsMx8PRvP/wPIhNNe6onFBJvy0wkoBJ9TsetU2sjHw9VEr86TBir30rIdxBYwBwxcLbeRbNXBu0MLkXtwaDpdPEclJxBx906ds6D1fw2wunrfabZqwoww64jXIllcLofQdXd95Q7; 4:iWYic+aC88HT4kI+gZqCrGcaFtEkCNL4ZG6nKOkgioMbOpZWigdm5DfAIvkaGd3IHUAos3qWbnnU+oxS6aaonhIPwoaW24RhTXKinZnZQsvZmwGofPjtIcIJrJzNVK7URWxbowzrDLS2djGP4DFp6/hgqKk4W7MOcCES8XHjX0HFgGSqQ5v+A3NBfMyybxYTaKpUbOkCIJF/uCrxjdWRZbQbHo0ij9KO7kEUCxILlaOFuD8a9uCD4FVIKT7HDLfTYvRwY73RPBWYTBcfi/WaKI6stfBNIVosyjnBm1JjWvWKNA2tsImC31oxOuH0hPNZp7kF1zHyk9q5Zw4lLpHUrH95JvjJ2oSQmHVvdtCNMYAA+y+pCI8+rYuXn+0/mkT/ 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)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR0801MB1343; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1343; X-Forefront-PRVS: 0722981D2A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(366004)(346002)(376002)(136003)(39850400004)(396003)(189003)(199004)(50466002)(186003)(16526019)(103116003)(26005)(11346002)(230700001)(23676004)(53936002)(39060400002)(3846002)(7696005)(6116002)(76176011)(52116002)(2486003)(33896004)(6506007)(386003)(68736007)(25786009)(81166006)(81156014)(486006)(55016002)(8676002)(106356001)(6666003)(2906002)(446003)(7416002)(66066001)(61506002)(105586002)(305945005)(5660300001)(47776003)(7736002)(956004)(316002)(478600001)(97736004)(476003)(9686003)(58126008)(86362001)(8936002)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB1343; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA4MDFNQjEzNDM7MjM6dXltcGY3c3Z3WGp2cFBnS3V3ckUrczNX?= =?utf-8?B?ckh5NkNXVUlXYWhtMjViT0tZakRnUk9XMGJGNG5CUFpEWlovRXNFWnJkRGtz?= =?utf-8?B?N0lQYUx4TFFieXNKK1c1bXNicXRmRmpuaVZTNW0vSTVyc3lLODhEOTVQblZF?= =?utf-8?B?V043NDFUaGJ4MzJOcjh6UTBhK1BTYUJqaFZDQjBEaW1vU1RDVkJrcmpUc3BK?= =?utf-8?B?U2w2eERzWjNBTXZyc1hMMFdMY3ZWRjhWb09ZOWFjWUkvMlU4TUJwVFJHN0Jy?= =?utf-8?B?RTZBbWpDRkEzRW1NL0ZrNWRuT00yL3JUNzBhaXNZWTVLWllOc2pqNDBtSFNS?= =?utf-8?B?SEpNMXlTZGJTNFBFck0yQ3pXODV0VW9zbi8ranVuajY4Q3JKWVJKWk9vQWFl?= =?utf-8?B?dkdJWDVSMFB0VlhEdmpkTEdEMTkxcWRFTk9kaURFam9zWnRpWWFvcEJsMXlG?= =?utf-8?B?aE1LaW1aQmg1eWlQelhPbFFoRncvaEVzU1liNFY2WTZTUmJWN1g5T1QvL1RN?= =?utf-8?B?YlRMVHpzUzU4N0M2WjRUWVE0UnJuaFZLNEhrVE52cnVEWUdBRzN3L3F3ZndU?= =?utf-8?B?OHg5dFJaWktJaV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Wv8Y7pG1m5Fp6Q/4cElu1GKKTJSChqOg+xBGj0oAnNrpo//5gRK4fPuLMWA95xeFwqSDQFvl2yx+UWQ==; 5:nXooCj4jjW6h/43t00IQXOzdrEZomBGjmm4dXCb0525u2WhW5TfoXUH4CGa7fdp5gYP5Ze4jEu4VZPX0vtBSdRkrsNf6TyN6NlAg8EYr6TQ5FXpWJCHQ+doLAdw/cuYPBybOxevRzDG8B056z7yeS3fLgDtvJ2EF+ucqauxYbhc=; 24:ty7cTtNPT1FUBsTFswWF56qux18qIWEkG8bkvHvS9gmCmHkUTrqrTEyoUCRWz1oeW0rMumCSvrdaG6eNqDONSM2PxN96x3gMG+VYmFQ2LOY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1343; 7:fUqO9QH+bvgpl1PK3ft1nqHNoO7Z6wmOV6FNz+p2kVzXUsUpQZ1/Ub4KhtVgkEFYV3Cblsm73QW6EQ/GBD4C/0ON9NnHqIeUio2GXQH1Xhk1NUfCfLnES5Yhtg4fvd+fsYXNjqXQHPeqMY2hXbU0KkvIEWR+gYXh3qZwQ8ukDJExNs4awG53qPjJs7Dxyptz7dZ2+ou/1k6MVVlOPnB+NC+REoe8OOA4aUQ+OME4onLfdMrcAs4PTR/7sj7KxKlu; 20:WwYWh0e7GQB+Ovz3vHSezWe+qfUdaMMwmzPVeXv8HbKoFOV9/HGjLo6X47BAZ1NLlklroGzK65vOQ9J5Zt3IRY2ORT507DaG5BSAJOo7YDY4qgOMG0xUEyhVq4AwfcclR95pRqe2p4qovt7/n5ihucrX4VWFvicyEQVRHZjuz8I= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2018 15:08:48.2556 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7a91cd87-8e30-4886-d997-08d5e0f6e2b0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1343 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 bff3f6b615f7..b93f64f25414 100644 --- a/mm/list_lru.c +++ b/mm/list_lru.c @@ -30,17 +30,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) { /* @@ -90,6 +80,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;