Message ID | 152698364295.3393.17720678806516765105.stgit@localhost.localdomain (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 BDAB16016C for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 22 May 2018 10:07:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC76E1FF60 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 22 May 2018 10:07:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A115628BB6; Tue, 22 May 2018 10:07:33 +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 1C2C81FF60 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 22 May 2018 10:07:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 123776B0005; Tue, 22 May 2018 06:07:32 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 0AC106B0006; Tue, 22 May 2018 06:07:32 -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 E8BF26B0007; Tue, 22 May 2018 06:07:31 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk0-f197.google.com (mail-qk0-f197.google.com [209.85.220.197]) by kanga.kvack.org (Postfix) with ESMTP id BA1326B0005 for <linux-mm@kvack.org>; Tue, 22 May 2018 06:07:31 -0400 (EDT) Received: by mail-qk0-f197.google.com with SMTP id c8-v6so17636416qkb.21 for <linux-mm@kvack.org>; Tue, 22 May 2018 03:07:31 -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=oW11i30zBrKa96sU5BVO6oG7fycJJIVLB7zRwT+/oyo=; b=ZfNwxhKjexvKG2oCqV2W4bYXODuEEyAagOwtvhz//u88CJ8BKtu5Vzzww83x652Cql Ou8N38IdQBh9sj40k9a35ENp8KUwTtWs6QWvXwfSGC4vHknohn00Aa9gGEwznbWn1WRm wim+6+08YucTPulJrLm4vhAx07gVe44ThU3QrKsYK6m7VwNS483qAFRmBs2YunNnpiHE VfNmljrWiP24nORjYQ0Xc05wAAyeWOoHJDNSMsRc4pZxtnx3Qhj+aS5DfFcEp2xIVR6T +RZW31pzkVgGhcnNzUwcX6XM8Zb3xLrvTncyUnK5vdfLngKXfir1EOmum3dJW1VOT1S4 PTXw== X-Gm-Message-State: ALKqPweLT9y8xrVXLbDKcV/jWexNrQwy4Q0LBwtsxE1lr18ST877jLeT MAGwMJb4PttLISZQFEP5waw7p84sUwwVnafCWrHUGEHNwtbdqRkzyQ2loyAE0zM9OmzJ1Tse3yd cfEr4GVFL0Wk/QVSDy72OCJSZL7O3ieh9TLeHXCtmkiPRGdHSJXULrGU1j31Ehawm/A== X-Received: by 2002:a0c:926f:: with SMTP id 44-v6mr20849842qvz.149.1526983651504; Tue, 22 May 2018 03:07:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpftlsuzF2jnzCiM3bI2hUAcXBzFhwHf0cKPiqvYKwZzDkw75m0743bVU3gaMWaS6mSbuYg X-Received: by 2002:a0c:926f:: with SMTP id 44-v6mr20849804qvz.149.1526983650899; Tue, 22 May 2018 03:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526983650; cv=none; d=google.com; s=arc-20160816; b=I8GZEXbDlERsrACZOlv2Jtl2pTw1Bg+fTQ7MWRBksywlme8uAxuDZonTSFeeEe4JLg Rjf+V4ACstJn3V9VfDOQ3IvJ1MyOTmIltIbOmSl2HDer4GQ2PM23tu8ID5PAN/Uq3GJ+ 26IYvGqLypXZcEfi0PYc6RUUWmwnX6dqCZFqgfljb/XpgfprH7s3ImW+/g8kqJvMkcHl Ol7RVG5msAvvRl4REVcHRSXPT5y8M313RIQajl3HOC4MhKv9SvheROkOVEOgWybdn8m3 nbJy3MABRQJG3mdoIkX4mkjnMyUX03vjg2Wo/YRUFY/FOxCdTIX0JtTU6KJcKg6NpB7G kD4g== 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=oW11i30zBrKa96sU5BVO6oG7fycJJIVLB7zRwT+/oyo=; b=sa/Rb5TkApCuThUJzzCplJOX2EocN8Gm+wKqRZislDicddR9oN9Xe+qjSkFP53EFhd BsRJ9pnSyic94FVHRXIZh71XwWs069ZGm7sakJp40ZDqVim0h4/oLvZ8FnOMG5imSC1Y OpyNeRBdGKMTic97CZ26FtOk91tD2BroW8CXQI+EWQcsYnZFXVC7P0LeqN/eil4jLrqf mvVYB+XChOy5MW+HindCQRbvJCKytjDgHfyIRf0bLQg90RhD8j2DgHG6hg9/r/gfcRMM jlge7u9V8tUJM0JdNnc8baZSHJpEO8c0tAi5mXnv7IMI1cKU1Stv5GivMXxZhEO8kBJ8 U/Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=Ud5msREd; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.0.116 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0116.outbound.protection.outlook.com. [104.47.0.116]) by mx.google.com with ESMTPS id k5-v6si11385017qvg.7.2018.05.22.03.07.30 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 May 2018 03:07:30 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.0.116 as permitted sender) client-ip=104.47.0.116; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=Ud5msREd; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.0.116 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=oW11i30zBrKa96sU5BVO6oG7fycJJIVLB7zRwT+/oyo=; b=Ud5msREdMyaNudY20nN1I2ex6DN9QeW8a3bVZLA5WEbE98qSOI98P7SRFbJNbj4UbfKljJRwxrLSuNbv257Z5PU99PN/CiywF9jRY59YL28+yfyERiG/suBukdRDejHxrKYzpYUTo2+aH8Pfb9gJxx/A0HPOzfCUF7t8yrSsxpo= 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_CBC_SHA384_P256) id 15.20.776.11; Tue, 22 May 2018 10:07:25 +0000 Subject: [PATCH v7 01/17] list_lru: Combine code under the same define From: Kirill Tkhai <ktkhai@virtuozzo.com> To: akpm@linux-foundation.org, vdavydov.dev@gmail.com, shakeelb@google.com, viro@zeniv.linux.org.uk, hannes@cmpxchg.org, mhocko@kernel.org, ktkhai@virtuozzo.com, 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: Tue, 22 May 2018 13:07:22 +0300 Message-ID: <152698364295.3393.17720678806516765105.stgit@localhost.localdomain> In-Reply-To: <152698356466.3393.5351712806709424140.stgit@localhost.localdomain> References: <152698356466.3393.5351712806709424140.stgit@localhost.localdomain> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR0902CA0014.eurprd09.prod.outlook.com (2603:10a6:3:e5::24) To DB6PR0801MB1336.eurprd08.prod.outlook.com (2603:10a6:4:b::8) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB6PR0801MB1336; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1336; 3:IfnAKE8I/4lVWDfVMOL5sLD9v2U0IbuNfhmkQLD3oFHnBpCS4v6xMY/zaE0Y1jhCOC+djBmiHfIQnyIFo5cd6HRxlwuf6mTsfpTqf16yeT0DkunJK2t+AWvwQz3vb51vvxmPAyzVa67DMfm4h57equ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o6qJcXDPFx6SuXa0GMxmcCVFq+GcvsteIWvon8Irzp07ffet3LPWI71zQIKGemlGrhMuAqODxG+LZEo8X+B2GgOB18KvIYlQClfuelDXiFEA5BnjLtvL6pLZw9yCLZVxYKFTeBjaYVL08Uypv0JrL8vu0KQ1yY2UfZ3FcYXxxx14W9er+2S67An/szac1+lWqACCShhl2wVZ0nFFy04pJ22rDjmplMnLN; 4:e8R55d4zGTQuiABSvSZI9pUQBHnJ+iLTBe1sEaOVz1VEasOyXRMgut73VdWwWKdCtN4ju5h8UBXU5zIKMZlE/l2Vbv8vd1+K5RnNGYumJD+/jR0CPcffOBRG6AB0WGZYl/5yu+k1Z9fqCqM6T9Urq34d+t4XJWL7juypRHeTzSAF2qJnFr6ZIrR0hRo/WddiQYc1XmSxyYBdOMxKvJRXcf7f+Mav9QoPJyWtCPtg9zjyLMJfsLtc+uE+OsXxVZTQblyshkxOMJv10ZPtqTzYmw== X-Microsoft-Antispam-PRVS: <DB6PR0801MB1336C59B10F856B5BCDA2744CD940@DB6PR0801MB1336.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:DB6PR0801MB1336; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0801MB1336; X-Forefront-PRVS: 0680FADD48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(376002)(346002)(39380400002)(366004)(396003)(39850400004)(199004)(189003)(86362001)(7696005)(6666003)(50466002)(230700001)(66066001)(8936002)(9686003)(61506002)(25786009)(55016002)(2486003)(386003)(81166006)(6506007)(8676002)(305945005)(52116002)(7416002)(186003)(26005)(68736007)(106356001)(55236004)(23676004)(16526019)(316002)(47776003)(76176011)(81156014)(7736002)(105586002)(33896004)(58126008)(39060400002)(103116003)(6636002)(2906002)(97736004)(478600001)(476003)(53936002)(3846002)(956004)(446003)(6116002)(486006)(11346002)(5660300001)(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?MTtEQjZQUjA4MDFNQjEzMzY7MjM6TTJuT0hHWWE0UnZQSWVUbDVneTh5VUl0?= =?utf-8?B?VUJrekRFbnBEeEluRTExMjFJZW5kS0JINlN4Sjg0ZVpEeUNQdEFhUzlZSGlX?= =?utf-8?B?UHBOb1FUZzloTC85dGZBN244L2lJaVEvdVFJUEUwTlZGc1JFZ3VhdThBTUpX?= =?utf-8?B?ZGhVMzNLRlFjaEdRVWdoc1U2UzBSMGRPb3kzU2U3RTlROWxrYU16Q1k2N1I0?= =?utf-8?B?Y2xwZlNNYmVjYk9FQ1U1OXlDT1pwc0V5ZWhjL2kveUp5dml4WndXa3BuQ3V0?= =?utf-8?B?aWNFYjh0b09oWnRzaTV6TTVvVmFOUGxCMFMza1dNa1dwMmFMQkVseFIvcHB4?= =?utf-8?B?ejFQOHkzUXZTeE1wbk5BbGV6eGR2RmJkWW1pUk9Za1Y2MERYUG14VHNxdXd0?= =?utf-8?B?aVBjaUllVWRNVWxLbzQ4dFptSTc5T1gzL0hKSldCRFM1K0xFTTRQNmw5ZGY2?= =?utf-8?B?RjBGUGxXY3AzM0x2L0ZFOTEzR0RGRjRvckJJR2cwQXhQajE3QXl4ZVpieVRx?= =?utf-8?B?aW9meTQ0ZU1wbWxHWStqVExzUGdVSVNuSVNZUEVmcnFwS0pTZXgyVUJrR3Rq?= =?utf-8?B?ZXU4VjVVO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s7JyimxmNqcIy9D0NV0YZrZVG2LQ3lds2lr2uzYpwRHu0xPtYYXg==; 5:3+p+nDKpcWk4K/Y7Oht0aebBGz/vL7blUxLGeCts27q9p/xRuj0IsIy3UZlq+BcaWPIRBLTxQ5iwsY7blJcb+fdrOukC2a9XiwzMMaN5tdHqvqS3a4QOBDnvESo4OQzTvyHkyudW5cAUGIdkeaE4H0YxwzoRtAw7jfw9hxpNTJw=; 24:vChHIXkIPXpXY8B/t72tMd9Jauz9bzehr2JW0LlZGVEDMTnYVSor7++q6HEzUubm+7ujtyBhunjIo9CqCmRTcQi0KUupfQ/ktI8eJVwMvKI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1336; 7:RUJLZifU0jbf0ENQr/h1XaZrk4v/zrgba2cNeTq0LdlxGf3fAmWly/UGGsLA6cBjAAs7jGizx7cfhVTLxkoYUkrOvaqxg5gCwDjWkpZQ5a5pCfMEMBu43d2pui8tl/2IeqGkU6xo9Ci0hHpMPwgkfHx8LkpFLBQaAxiOzhvESBlMkXskv4ldPSpDeF7YDYkMZ1xB3RlLKznE/32YMeHVWv1BzO2fZ/ISpJED5HB7ywPaJbpQ4KGPLBkiQ7W/5QHk; 20:j1ho6nu8leyXtJUWUfjT/fd4E2jMYorzXs+8x5+ya1bwe+VdBIeaiSKhg7LOZZz8bdIaa5D94bc9WHDHbNKDVK5ibd5cxwp2JqyClvH1TOYfeTRgQ6NJUx82B7R0ABJqi+VP9a6+rohUxTr/RnoGN31U6FDsYijp9s89W93Q3Kg= X-MS-Office365-Filtering-Correlation-Id: 790e6e3d-5465-4451-200c-08d5bfcbd2d4 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2018 10:07:25.7144 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 790e6e3d-5465-4451-200c-08d5bfcbd2d4 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/mm/list_lru.c b/mm/list_lru.c index d9c84c5bda1d..37d712924e56 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;
These two pairs of blocks of code are under the same #ifdef #else #endif. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> --- mm/list_lru.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-)