Message ID | 152931514789.28457.4737374354831959330.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 33ADA600CC for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 18 Jun 2018 09:46:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2309028474 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 18 Jun 2018 09:46:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1729B2899F; Mon, 18 Jun 2018 09:46:01 +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 8C6F928474 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 18 Jun 2018 09:46:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6BFE46B0269; Mon, 18 Jun 2018 05:45:59 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 696CE6B0270; Mon, 18 Jun 2018 05:45:59 -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 512D66B0271; Mon, 18 Jun 2018 05:45:59 -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 26E5D6B0269 for <linux-mm@kvack.org>; Mon, 18 Jun 2018 05:45:59 -0400 (EDT) Received: by mail-qk0-f197.google.com with SMTP id h15-v6so12889126qkj.17 for <linux-mm@kvack.org>; Mon, 18 Jun 2018 02:45:59 -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=9cpyamzKJzTpP42p71B+m7Dssy8doT43wwml4xPuo3o=; b=WVcVK3vV6cW0sxgHZR9LxqNCdhatcmhBZsQ5tPP9kqg0S4J63552PLNw0XTckdP1HA xp6iSvgyZ73ZIbSM4icDrOABb3DIwgB4FuuquGJnEhHwzOoCZj+47sIOqXKEGvJwCg+G q1uYIkAJ8DWPjSqh8k2SVF+jzyRe6gdFYmWJEeXmUmzCpwt8iYrp5pbLJCh+RveAoVM7 bj58LGuOknBuTXc1MdE1v2gA2sP/uKFYh4KlXsT/0WPGpWk9au0dzO4m1ljnTW+84zZC GvVO5ic9osITG1DhfBHGeplc6KuVK8bs/rZW0vHK4GVrtntr6Qf4smlFgJO5asgxNvli AoXQ== X-Gm-Message-State: APt69E3aJ+IyXe4AOKRD0nYm9d70Cum1m3cu6dWup5ps+B/kNBF7wFQa 4fJ4unbTOagBaJdjw3E8UMSuZNG+lb09RvqvpLXS0zximh7nUZZWy5Zh8MAqsQD6ZXjEWyPQynL zL9cujKbVuARJMZTwxNyK6BZnGmc+Dls/Vaf0ZtUbUFNNEI215TSfBoecHGYzL1iqcQ== X-Received: by 2002:a37:c24d:: with SMTP id j13-v6mr9521259qkm.210.1529315158962; Mon, 18 Jun 2018 02:45:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJfSffXs6jJY/JQ00LLPUDLgykbAssxyl844uwos5b0NE3zifqGe4Jb9jdieiby/S/yxnTs X-Received: by 2002:a37:c24d:: with SMTP id j13-v6mr9521243qkm.210.1529315158464; Mon, 18 Jun 2018 02:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529315158; cv=none; d=google.com; s=arc-20160816; b=kUSmI2r8PCCLAyJT3YgTVzE0gAoi76Zct50X0m5LTPOfNMZcMhEMBVlyqqPYlZom2I J1ei+sFqovTcIYCJ5kulhmEGZXuIArkd8lg1+RrqaIqyFYvbODwCinodokFlfkTADO+n J3pQlIrPgSuJosuSgcbmp3lDpDR69tYKNOriKhAmVGbWO+qkbs/i9jPzmYORYzWNxnQD NJEMfKLv2aE94AqS2LuHjpC9cI2sQOlMtiRy+GRvpWNE/TB51H9SoPfo6J9ppRBUkcDa Pvg1fd60SSxajehAm1nyf7+N/Vb8VjFJ0x9YxKRjmrgYvzPCT6D06dgwVTq6b4fKkiTs y4gA== 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=9cpyamzKJzTpP42p71B+m7Dssy8doT43wwml4xPuo3o=; b=va4jKNQeXtakH6vbItjMqPljaN9FENRVMBiQ/ZywsC/JFU/BBFmGI4cz1BSwR54mev IzXJdzL8vN2be8twR8af9n0M8hLtG2cVUmTsf5JmOrsxer2sTT4iMR2ntYLJi9Tdh2Zz Qa8BjkHrkYwUXGLvL1doAhJvo5A+IPK1QBiwanEqHkfG0hV+lo+k5tJcVR2+Xh3FYrGx 22JxDDM8hYw7C2dTo+isrAqf2mB2D/ORaKUU3as5W8RD2vrkJl3fxr3gvrUtaxm0XZj6 U51xguj4CsBz+15rDgOruP+gqqdBWTJ3UfhLC5H1afzjoAzUVD8DkmCZfUuzxhuxQolX 9c+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=gdEI4aRf; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.3.119 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-eopbgr30119.outbound.protection.outlook.com. [40.107.3.119]) by mx.google.com with ESMTPS id b36-v6si4992067qvd.78.2018.06.18.02.45.58 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jun 2018 02:45:58 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.3.119 as permitted sender) client-ip=40.107.3.119; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=gdEI4aRf; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.3.119 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=9cpyamzKJzTpP42p71B+m7Dssy8doT43wwml4xPuo3o=; b=gdEI4aRfMhPzdQACkv2UpRbOzPEnr2rzlvU3tB6eAtdKSim9x+t0MrMl1+4FvbVMk8N7q3hSrsNSKBql9TS47v40zQ8FsXw7Ve4t8skz1BpzVkGkUEOzNjb0faShou7PGqAj2y+cpV3qP4S+flODvSeHYQNjkHV87W7J0E7jupg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by VI1PR0801MB1341.eurprd08.prod.outlook.com (2603:10a6:800:3a::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.14; Mon, 18 Jun 2018 09:45:51 +0000 Subject: [PATCH v7 REBASED 06/17] mm: Refactoring in workingset_init() From: Kirill Tkhai <ktkhai@virtuozzo.com> 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:45:47 +0300 Message-ID: <152931514789.28457.4737374354831959330.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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR08CA0074.eurprd08.prod.outlook.com (2603:10a6:7:2a::45) To VI1PR0801MB1341.eurprd08.prod.outlook.com (2603:10a6:800:3a::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a58480ec-c7d6-45a4-aeb5-08d5d5004865 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR0801MB1341; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1341; 3:EUtI7Uy5DZ1DLz1SUi78JhY+P91vVkNnMml/i37AGPDA8+9MWFbNrWyEK1jaIqBGejZOPI3Cdf7cuOSt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qilzWRnKuT4Qbwe6dFitzZga2cI1sdnbXEWRkFeBDRcGTKBTJ2bIqLT3KnkRf7yDKlCC2H+pwaKx6r9jgHKuxzNkYkz686SHj3MvHdhSwOYoKw30uWeV+RjdnMt0tevr9gZ9uYUvjK8j4aa7d8MrRCZiG+w2HYAmR6sb80uT/0AMD/oJqzph2B6AhGcYvXXBAf6siRqzwd5Q96SFBwt15us/KjuajmXYfWSsIKSwa3dcniKI0D6ucUNDLMFQDoWpfYE98S5b3K9kWD73XTCntB; 4:SW7Gtivtk+kyYPFFGEVQmcSZNZQTpbhHiWq3rn1Zhcm0pT3EYl+AfEz+Zwp5svn3nhtDMpKg4iZYusn/0oEslS6PWNr4rdFs63GXd+P8Je+mj/H1dKyBMV85Tl0lJ8Z+CbcnLJcjhVXUTzKB1dZ0uIT6E6luOb8jJClCqn1p6+BcmBHJLqMy/JjxSpXvUCvVzzEX9oCKSUwEPyMRuyDeePmoofBb6uXkL4SjAAxqab63synOPkfRA7HlvDMdsHy+3ZqYPummRL81cqcQFYAfO1h5y4mPEmDxEcWY0GLjGo6RuJrB0KLonIH4D/XA7u88gMGb6YvEf1NV/4nJlj5da1XOXw5tmJeI0MMGIpt22y0NTfPoLV9HoJO0b0DKnpOh X-Microsoft-Antispam-PRVS: <VI1PR0801MB134143DF4B3B1C3B1FC209FBCD710@VI1PR0801MB1341.eurprd08.prod.outlook.com> 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)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:VI1PR0801MB1341; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1341; X-Forefront-PRVS: 0707248B64 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(39380400002)(376002)(396003)(39840400004)(366004)(346002)(189003)(199004)(2906002)(6116002)(3846002)(11346002)(956004)(6636002)(478600001)(486006)(5660300001)(86362001)(61506002)(81166006)(25786009)(6666003)(39060400002)(446003)(97736004)(476003)(53936002)(81156014)(106356001)(105586002)(9686003)(8676002)(230700001)(6506007)(386003)(8936002)(59450400001)(50466002)(47776003)(7416002)(55016002)(316002)(16526019)(68736007)(58126008)(26005)(186003)(23676004)(305945005)(66066001)(55236004)(2486003)(103116003)(7736002)(7696005)(52116002)(76176011)(33896004)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB1341; 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?MTtWSTFQUjA4MDFNQjEzNDE7MjM6VUpwc0ZpM0tvNzVPcXZ5VHdJOTE5L0o5?= =?utf-8?B?NHFQT0xKbHZJOGhlSHNoVWk4Vnd6K1UwZXJNaUQ4VVZjRWJlVUtVZW5aVXEz?= =?utf-8?B?UmJCQWE4VkpKdHNmb3BzcE90Rk5GR0JaVEJwQnZRZVNSZFlxYWxSalgwZTQ0?= =?utf-8?B?ekI0V3dwanpWbTZYS2ZSdGRqb3B4bittbk1sNEFqMXVxWk5TNHNnOVJJemdU?= =?utf-8?B?T3ZWSzhYTVNJdlE1bzBISEdXYmtCNTBaK21nY0VYK2JvMXVwaWpqam1IZzdB?= =?utf-8?B?TGw0U1BTMjcxNko4QUlVM2hkVHNrZDJtemlvajMzVnlOWFhrQTB0NEgwem12?= =?utf-8?B?ZFV2bk8vL21vTnRXNDdYYkVQZWg1YkFiZ0d1VWlUNnpDUXd2V3hVcW51eExi?= =?utf-8?B?RG9WcXVNcUMwY3VnU24rL1JVdkZVaXAyMH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iU4KInL52EZX8/DUyJhuN6gtYKDBGdtbZ0a6tcN1qoVl0/ah1SjtfcO7xYahbLxhOfyNiz5DHt8QRESKUfkh3woiDDRFYO5wwr5XuYZ3oIwhgNb7UHt5pglu/GhxM1t1gSnfxZgia1EgcxGkqjNuRj0D9brbfMqg5pB3XmtHGfagFD7K1H4eE7TFpXiS1hb1RG+Oey3ZiwRr2H8GltJQ3XwgznHEJf8dOn/mHSxMdAqBaAfx6TN4D15b393k/lQkEcyRERUSTCrSEbG7OB5eExhmnoeEU/PJQYTMEG3+77fSDY1mNoSmxEcJOXQarM6QWMWL//KmEApcxUHpf7Qat2UxghkTCWvuDVDsNf9eb3imTBAaHdX++jWRyepZqVybQhxXgDtL4KUfJYdmUEn4IW2KFT64nYPKRJSow==; 5:LAvbTRsYkzlXQp05QYr/lSIcaIg7iWhUSdILRp9+fDOYF28Ql0gZZ9pf83y9ad88Zt3FE9MDaeAl/O8quXpmjms/+4Bl31gBhrqJf3hUlsarXeh3ZVPkP8XN5nO78Ay4AakRgaq+xjSCoCUWuvSStxbExFWKTzrz+FZ84jUD45o=; 24:tP5fk+RABSOn6czsBLEAqkzK/RZxyhLGScKk44ogJyphxVdsBiQktvdVC8RsWzL7uiRR1skoFReXJ3MH4KO5D1VTDZVhmqDqxgLImdXkECU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1341; 7:I34JOXzqrZdgKVRHpxziP+mPvwS/12TDUsXYdl+Lct0cW7iEyGL2JXBS+STA9f585oUMmJYSzOioJ4eDP4Xvj43K6JKEuRbIQETextJM3coByIxFwz+j3NbAXTI521IW2Nf6GWzlcZbHSu6SQDhhzNInb9JbPwu0pfsbkfqHDBegPLyC790J4K/tOHWITbB2lCQ+wNdW//RPVTjSoYhgZIqGYSGeS7DNHnkEvMARDaId871QlUgSYKAjxdY51pQ5; 20:Y7Xe61kQIZBJG4EkZTCWcarPeId4m7X55vmmt39DnC4C33cyBNSVkKjUlwbpPf+lC5JLic0OnDYSs8TNzIUkGfYQdNs8JtILernufalnzW5OIY/P0gTelnN05THFVl2RTMciZREWYr8XpFn70zUiL+SXjWwoMUPLMRH1KTeXw6I= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2018 09:45:51.3145 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a58480ec-c7d6-45a4-aeb5-08d5d5004865 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1341 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; }