Message ID | 152698369501.3393.6857643130952291774.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 D616C6016C for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 22 May 2018 10:08:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5A2327DA4 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 22 May 2018 10:08:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B988128047; Tue, 22 May 2018 10:08:27 +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 4DB0627DA4 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 22 May 2018 10:08:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 196EF6B0010; Tue, 22 May 2018 06:08:26 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 146296B0266; Tue, 22 May 2018 06:08:26 -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 F03C76B0269; Tue, 22 May 2018 06:08:25 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl0-f71.google.com (mail-pl0-f71.google.com [209.85.160.71]) by kanga.kvack.org (Postfix) with ESMTP id AAA0B6B0010 for <linux-mm@kvack.org>; Tue, 22 May 2018 06:08:25 -0400 (EDT) Received: by mail-pl0-f71.google.com with SMTP id i1-v6so11813651pld.11 for <linux-mm@kvack.org>; Tue, 22 May 2018 03:08:25 -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=6Lv+JfRhmpiB11xmNRi/HUFuAWVUELXj+iX52Hpqp+Q=; b=Onz5rU+QXts01I51gtXyCg/O0ynRdHfoHeHHH5bXK6MjYQV/VQd3VJ44y21bkno1H9 UFmZvBTCxaFY34o5qI1IEZbLw09jjBBO6Qn6ZUciZ+ci9fA9/t1OH4jP7iFwW9wMLHht YTaFGjvwlQHsH1CndrH7vs9HuyWSiqDX6W9KqTBbzVLX95PvrsSDPY4FgmaNCfiSz1f/ VhgwZ74TtIIwYNWhoBHAKICJ+64j/B3vEWMCJayTc9x5yISH+vUgpw+QP2hSzYddYF5T 4ma7ABB6IZHsg/T19tBzi7n/nlDTnYOqibP+KHp1qmh9lMCrh4ZU6TziIWn3RhiCjLUe KEjg== X-Gm-Message-State: ALKqPweDVgUGrGcaIBMfYjE11RPgcs0qHbpmE/7+O5afxTEvyK9cMFEY T2gkaPVRYpn2tt7KHN8zwmOlMPBPVHVJfa+W0n6fsIdpmFu0g4ZGmYrEW8xLF2wZatK08ESNYEr XvtZsGLDojcp3u0gZ19l6Hktwj5G4LWebMELc8oZiW7ItJaZSBSMy7oPa8rzwV7GYBA== X-Received: by 2002:a62:4708:: with SMTP id u8-v6mr23677896pfa.89.1526983705377; Tue, 22 May 2018 03:08:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr2MdkPRC7wTMHzCT5WFHUx3OQKNgRWGjFBfPFR2DYAZ8IWtA1rtswh9NB+lc15RS5ockBO X-Received: by 2002:a62:4708:: with SMTP id u8-v6mr23677850pfa.89.1526983704709; Tue, 22 May 2018 03:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526983704; cv=none; d=google.com; s=arc-20160816; b=zQc8yhU30wGY36+vE1w76zGmnNr3KLTnu5qUOQ0vj66fw7uPr6bIvn05k3+nVYmins vZU1seI5FJWNmRMBRNy/X510q5OTJ1F7n73DJDTc1GoO3zlkayol+760xULaojPTtbSX q3dTtiJN4HYmpI4hhZo8Y4XGcNvviLx73K4uDJbjfau3IuFQ4V3a/pHtIMgLkdWsqmFw Al6bettEexQsZv3yjdfj83B5kSUrjG2rAXcwvY72uIBGeQLpvmsMDhui8HJTyKmWnx3r DMTcef+NYvzfqoH86FFiB3b4KbAB6X+x6HlxrihO+OHS8E6fULtQL0oXEKkC1iXAEoku pnjQ== 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=6Lv+JfRhmpiB11xmNRi/HUFuAWVUELXj+iX52Hpqp+Q=; b=hXTmva2O2Mew/mAqEf03oiI6/tgMymyCWoS3pQWJ/bPjgNnS92Ir0ZvOdtCZwuk6KK Mbv35GDC1itCZmrwaKG5gFseGTBA/re0rTioI4igIVt2NUlI2WVAR4oWlTRkiUkBoP7k 7JxdOFL/iiKqIKXnl6MXi/u0PtIr4pzZPqrs0hGP86gC7+muEntIYa4mmoJ2zCb/UbdR fNr/tWpK6rLlsUcc6MrqSwUvoKfJf0rqjTU+TopX9ORvWB1GD8ayndTEnB12ugML6TLj WsTITDJrJg1IJD7+BiEO4wXUosEBDlLRjtXmuHzsrcboyY97zcDT/B9rZQybvSk5Aynx ttUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=a1Fa73Er; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.134 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0134.outbound.protection.outlook.com. [104.47.1.134]) by mx.google.com with ESMTPS id q3-v6si16569058pfg.298.2018.05.22.03.08.24 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 May 2018 03:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.134 as permitted sender) client-ip=104.47.1.134; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=a1Fa73Er; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.134 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=6Lv+JfRhmpiB11xmNRi/HUFuAWVUELXj+iX52Hpqp+Q=; b=a1Fa73ErNC7IHk7XMEjiyxGoUutcSfoW6L0XECYkCWIHe0jayPcNdIY+I2J1NYsjceYBw8o78j/yHDhRkYo5UdB4+gQDEpuHLL+H4oXX7BqUA5CVW6P5A2dkViWTrS/kRLy5/hGS8ZTA3qo0x6IEWDNencm0jInPOK7q39jnpaI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by HE1PR0801MB1338.eurprd08.prod.outlook.com (2603:10a6:3:39::28) 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:08:17 +0000 Subject: [PATCH v7 06/17] mm: Refactoring in workingset_init() 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:08:15 +0300 Message-ID: <152698369501.3393.6857643130952291774.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: AM6PR06CA0001.eurprd06.prod.outlook.com (2603:10a6:20b:14::14) To HE1PR0801MB1338.eurprd08.prod.outlook.com (2603:10a6:3:39::28) 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:HE1PR0801MB1338; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1338; 3:CjieLITjX1Ppqs82j6XTA63mdC4ZKEQTBFosZwz26sE7FiMvu1WKT4aSv5JlVGlhzp58Ev7bxCiZee9dQ95z+o3e5SOSs5WlurdUugVzWp6+9T6FAdWyWpNGJEW7vmsD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wbnS93TN4R3RTr5MeI1joI6TAMIEuogaOyr/1cH5S/DAT62zlS03SQnENY8Zpz0t4lv8UzqmO7SarsuO4PAU3+48uzo/gB5MR+pWOhUnGUZhQRPZ16ysynj98mTBQ8KQcQlBptrN0nKEPKLPIKJgnYby4G7prekqY8RcVGQcx+ImTpR2Hx5fFsPMF9nZ41KmONm5jxxje2iYduHQ4anE9cIyy5; 4:NQCYA1bMDaeb1aGjfo0e1MIxhWmwXBvNNo9Dd6+zsCfB5U07vxcJ0laFgcPEcvqTneHI296F3XDesJWechXoaoFMkvb75I5nNQNEkXkHHhicx1mBMhYfnmJGGCYzlcrqegY3jdsSnE0PRePHyKf0M8ecQGnkrBsVzp9Y+NsEtWogCGuv5G30PWKdQhOoMF/Mqdl3Z8cNtMMdW8+/Pfvx8VO06ftpCBCtKcrs6MYueyJSaIWA8MmM0fRY4eeOP5CKbV0w7SbYO3gD8K41xeYd0A== X-Microsoft-Antispam-PRVS: <HE1PR0801MB13381D181178286141BDA167CD940@HE1PR0801MB1338.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)(8121501046)(5005006)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:HE1PR0801MB1338; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0801MB1338; X-Forefront-PRVS: 0680FADD48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(376002)(39850400004)(396003)(366004)(346002)(39380400002)(189003)(199004)(50466002)(105586002)(6116002)(3846002)(81156014)(81166006)(106356001)(68736007)(25786009)(305945005)(6636002)(486006)(8676002)(956004)(476003)(7696005)(23676004)(11346002)(52116002)(86362001)(2486003)(446003)(39060400002)(76176011)(9686003)(5660300001)(7736002)(53936002)(103116003)(97736004)(316002)(2906002)(58126008)(33896004)(61506002)(55236004)(7416002)(6506007)(386003)(8936002)(47776003)(478600001)(66066001)(26005)(230700001)(16526019)(55016002)(59450400001)(186003)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0801MB1338; 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?MTtIRTFQUjA4MDFNQjEzMzg7MjM6OEtrd3AyZFp4L2JtWWRJWEc0cFZJWEJt?= =?utf-8?B?ekt4dkd0VkRERFJWZTNHSTN4RVhsVmFyTWw1RGg2azIycmI2M2JOTGc0TXA4?= =?utf-8?B?T3J5RnA0aSsrUnBBVVdEckE2TE1hbENQMmU5bHM5d2owQ0p4Mzh5VVhWRW5F?= =?utf-8?B?b2p2SVoyS2Nla2FDdWhzeEZuamVnYnRBMXhXZXJFS3liL2JmOE5pSnRDaXR4?= =?utf-8?B?NkNYTlBva2thNlVGMkNYaHNjbmxSMmJNUUtaK1VrZm1rNEhpL2I3NzdoM1lD?= =?utf-8?B?a1RBWFhsOEZZdGtBNnU1UVUyV1R3aHQ0cjhFcmw3S2VhbFRXbFIxNVlmTnUy?= =?utf-8?B?bkpFQ1hjRkxSNlltOEhGNWp0TDJOWGhoVVJIZUNxUE5LellyWkJwMFZ0SVlJ?= =?utf-8?B?ejNhYTg1L1g1RTZ2WllhZXhCb0JzQUVQZ2pMSnFHemNFZmNGWnZyS0lRTG5S?= =?utf-8?B?ZVo1NnQxelpyYnNWQ3NtODNVeEZWbU93K2orcVU0bWZCbm13aFFoWnpab2sv?= =?utf-8?B?cU9DajN4RDRic3JaYko4R05Fa0E2NEZNM1hUaythQU9TNzhlQlNYVFp3Ykk1?= =?utf-8?B?T0JKNkMyMVZNQ2xqTE9GM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3wc5YUdq5IocoMSKuDV5xKIL6hZWhfXIAZQ==; 5:xVWDJAcywtwLI7m7IXSjvKT/vpVA60aQbekn2OkGNuRcm1pgBNjxbthe5tcU1Q7RuYzrwr2GcJb++Ha/s3cF2uGeL1fJ1aX0JdgSN0KO3BLd84mds9OYqfcdRHdCBlBuPaa/95qFmNRXA8R7RbDQeiGkLlGrXxGas0sVc+CR/f8=; 24:TEosPPsVlyn5OZMYKGkOcpK7XXkhVIQyod8y/ibJMnfaUFH7LK1OuUvPCTIbLIo0/LJ9Elr4irYP6WGcczhHi3U7VPava0S26Jm/JqxdZGQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1338; 7:Guua9L2hjBQeDhZJEjZkFdGWRo5LQtPXMa///TWnYF5ZWlhLsC6ww41gYCmuKaZS9uOrI+e6S0zQpZKbSH17MuPj8AU6io3WIk+sABseUAfHslcPk+ixSPN9omNLd6RwnxrqNgAFcisGr0ECeYwqetsDjEzAlp2loV1kW+1UJKIkkuTUhlzcNSJ/2Autf2HW8e0CzK2LUssFonLjJJrRpmuL/kR0S7WIpTomePtN00JsF2r4u28qx9PHQ+9n3LVu; 20:HEoGRIRGbzw0yi4vTR1EvR+SMiBxwqTCALJTGl2uClhHG1NEtyYo7qMf6xqVyKXnGpiTLpZ5kwSA31RQVUfYsEBbiYuCh05xLgZmPcb3IJuiVTwsmECWD+/H/89K7/8zb6jA2sLtBcMfhmOvrMUzEdyQfHp8+MPXGKrKeuAXY8o= X-MS-Office365-Filtering-Correlation-Id: b6ba3227-2d5f-43af-6467-08d5bfcbf1a8 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2018 10:08:17.4997 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b6ba3227-2d5f-43af-6467-08d5bfcbf1a8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1338 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/workingset.c b/mm/workingset.c index 40ee02c83978..c3a4fe145bb7 100644 --- a/mm/workingset.c +++ b/mm/workingset.c @@ -528,15 +528,16 @@ static int __init workingset_init(void) pr_info("workingset: timestamp_bits=%d max_order=%d bucket_order=%u\n", timestamp_bits, max_order, bucket_order); - ret = __list_lru_init(&shadow_nodes, true, &shadow_nodes_key); + ret = prealloc_shrinker(&workingset_shadow_shrinker); if (ret) goto err; - ret = register_shrinker(&workingset_shadow_shrinker); + ret = __list_lru_init(&shadow_nodes, true, &shadow_nodes_key); if (ret) goto err_list_lru; + register_shrinker_prepared(&workingset_shadow_shrinker); return 0; err_list_lru: - list_lru_destroy(&shadow_nodes); + free_prealloced_shrinker(&workingset_shadow_shrinker); err: return ret; }
Use prealloc_shrinker()/register_shrinker_prepared() instead of register_shrinker(). This will be used in next patch. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> --- mm/workingset.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)