Message ID | 152586704715.3048.16683522879894119893.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 CD7DB60236 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 9 May 2018 11:57:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB51C28BF1 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 9 May 2018 11:57:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF62728EBA; Wed, 9 May 2018 11:57:41 +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 0740628BF1 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 9 May 2018 11:57:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E73D56B04F6; Wed, 9 May 2018 07:57:39 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E4A526B04F7; Wed, 9 May 2018 07:57:39 -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 CD0CC6B04F8; Wed, 9 May 2018 07:57:39 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg0-f70.google.com (mail-pg0-f70.google.com [74.125.83.70]) by kanga.kvack.org (Postfix) with ESMTP id 878406B04F6 for <linux-mm@kvack.org>; Wed, 9 May 2018 07:57:39 -0400 (EDT) Received: by mail-pg0-f70.google.com with SMTP id z16-v6so10221054pgv.16 for <linux-mm@kvack.org>; Wed, 09 May 2018 04:57:39 -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=sLfH0wYiPfNm4ogyPMTxDw52+laCUpH8sPD5WkH2ikGAyb/EBOaWAolSqRRmELKQ86 LQhogVk/Oy/e6cLQfONRBIRlSTM9T3PTW+s+8tiW2EFa2ZEsHpxc7qRcP/fpBGGZ7IFO 1c8rYBgeS9bEwHr5f9tZgqgghDcgYJIAzLk7Z9A2G5TJdQkOF5U/LvmgrmYq/8x8Zzp/ Y9Edv/DsCiiNqYePgS6eERClVEjp3I9AvMHVEsA4JtCoAoSKv5CG5teqAWPOvPNuxmli Xy06h0Rkq82TggSnNMpIuUb3WabgwB1TVEXDHeSpRPq4ogWQhTUIxT8numnyrEankLqX qPHA== X-Gm-Message-State: ALQs6tD2FFE3jpUsTOUwdvQ3BaEnGRKHmfktm93bXW5GCtVmGGidtNuq aADZcD4/seCGH+6ZY1T5VM3fzoUrfZ0I75U8vuaEuYeEFI7PyhPT+mTI98qsEOApHP3hyZyU1vd aX5W0G5XhXyhy67rfbkmckbNIJYDKdRNLzJCzLwisjNiUIL1H6KAJ0PSXNO0i3GZEMg== X-Received: by 10.98.57.156 with SMTP id u28mr43839067pfj.95.1525867059192; Wed, 09 May 2018 04:57:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoxVXcuU99CZ1GUxTkOrj1mVRUifPzOzfucLSKIfjlP6pHKC/bvLxhK8rb8HATis/zlBRKv X-Received: by 10.98.57.156 with SMTP id u28mr43839027pfj.95.1525867058384; Wed, 09 May 2018 04:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525867058; cv=none; d=google.com; s=arc-20160816; b=Oo2DPMc3+tPBqhqoToU7M6+Y+NXcdB0jAzEEEyiNeHeFP0+NMrIf1X5y71FAhodKSb ykBB1x6gdF+ZfL9Urv2HpKsxZ6VgFUKiaIogmcIBAL+yUXStXeA13nUuKRubBmFdsL50 DiJHulZ8nRs4ZTAfXKPCDylQIcJRpHltYWAViCnTFhMNKSeP307d1PwK9lJbvnUgk8rM TboyHUMCHFARPBiJpmqX31f0rf+P5D13xPuwLVGJTB369/MHHCdu98QwG8JravAARbFL scUbd+FB7E3KrX2LkqP8PlPcMoCXIrN7CfIh4NX57AgNJVXzKCG65AazkRWB5WeJItnF Cozg== 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=YzdPvIUHU5tkFtdLOXMm+czwR9Qk7mRDIn0MC+HwkBbUdglfu3GDxdigz0AraAQ1IQ RRqKFuq5kQfgLtqT9Z9ZfNg6x2qyNoZQ23ckUpvIb9TXJ4K/uBUndqPlAfw+Wgnrb1Og CosLkwW3zYFxz0mA4912O6t3lEPaqjlZfK7KdDlL2U5Mq8UBDbzrX2Q8fQ8SWAkTslSo 81dFrmx1qOHc81JxNjpzhRhYfLeA7DlSCDC5FVMZ9L11fU3XtPe8OrKxQ/wkxlNADTPn P5xfzX5dAJZ8c2sALZApaxNfHh4/2j/eWTikuL/EsVGjR/Wvl41KFKl6A3MsMLLCQf/9 3gQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=gI+WUoAk; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.4.131 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40131.outbound.protection.outlook.com. [40.107.4.131]) by mx.google.com with ESMTPS id f85si27091081pfj.125.2018.05.09.04.57.37 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 May 2018 04:57:38 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.4.131 as permitted sender) client-ip=40.107.4.131; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=gI+WUoAk; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.4.131 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; bh=6Lv+JfRhmpiB11xmNRi/HUFuAWVUELXj+iX52Hpqp+Q=; b=gI+WUoAkn9vIyoEuol1h0/RUx0ABQyG3miKZqQvPA7/bJ5/uxYlZUXjiGD2lgqksyTDK7U5MZ2tbLBixuNmmoG2Jo5qit+f3GSFz3vESFUucsgJcdB3o9AX6cf+u7Nsd4pZUkRrX8K7JFUcNFJC0k/A7tCu9EeXB1ahfDjl6xpQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by DB6PR0801MB1333.eurprd08.prod.outlook.com (2603:10a6:4:a::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Wed, 9 May 2018 11:57:30 +0000 Subject: [PATCH v4 04/13] 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: Wed, 09 May 2018 14:57:27 +0300 Message-ID: <152586704715.3048.16683522879894119893.stgit@localhost.localdomain> In-Reply-To: <152586686544.3048.15776787801312398314.stgit@localhost.localdomain> References: <152586686544.3048.15776787801312398314.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: HE1PR0301CA0020.eurprd03.prod.outlook.com (2603:10a6:3:76::30) To DB6PR0801MB1333.eurprd08.prod.outlook.com (2603:10a6:4:a::27) 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:DB6PR0801MB1333; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1333; 3:9KuOCjPZ97su6CkLnW/V5+O//xKjc5MZMsZjU1kAWJa2AZ+gZQhdNIS1CIz1K9aPq1840sHfgMrP34uLxZc4vvKJTuNZYuBvkHwRsADq1xXR6dW6XQ+/i3K73Zv+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/SPuby3DjEldbAS6nlJHASFxzUhoqLYz7DnGBcn60BTrcezftuKAOTzbqnwORRoLGRBPttmM0lLv3UWWh3Den8oypLLLoGH0iL5diQN+DhyrTDkfRzWNs89DbJnuU7X6jXJ6R8O/rDHPXJedx00RVzkSyIoLL65DQN+9LblKHpIrV45JcrPwSoROaj+bao6Acat778ozGBN99Dj3o4BrAP3E+ciBuAf3jOA3/3ZT; 4:zOwsP+MWq4SwZ3tPCmAB8NpIBOLZN939B7UoMexmxfSspKW0kJ95azLHZjaxhl0NT4EUbCwgq/9jw+tf58ZSWzrySDie5DIwMIjk2gfRczB1vq+ziWD3N4TvIccWcdJ5KYcdsAAb/n7MBalh6LxmtRpuH66HEGUdwrMJ1rfjSPAmb6i6usxpeinlcBwc8rcAQm4SN7It9R0eaX6sohYn0rD+JUrGpJmkeEivE2nz7aC6bV6LtJYfiruMNs5/idzdeJ4/BzDXWfwEPmAPPxDtRQ== X-Microsoft-Antispam-PRVS: <DB6PR0801MB133369AD422F7BDC50D66691CD990@DB6PR0801MB1333.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)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:DB6PR0801MB1333; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0801MB1333; X-Forefront-PRVS: 0667289FF8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(39380400002)(346002)(376002)(366004)(39850400004)(396003)(189003)(199004)(61506002)(66066001)(39060400002)(106356001)(8936002)(97736004)(81166006)(25786009)(81156014)(105586002)(478600001)(53936002)(8676002)(47776003)(55016002)(6666003)(186003)(3846002)(9686003)(305945005)(6116002)(446003)(23676004)(230700001)(2486003)(2906002)(76176011)(11346002)(86362001)(6636002)(103116003)(26005)(7736002)(16526019)(7696005)(52116002)(476003)(7416002)(956004)(50466002)(59450400001)(33896004)(58126008)(5660300001)(486006)(386003)(68736007)(6506007)(55236004)(316002)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0801MB1333; 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?MTtEQjZQUjA4MDFNQjEzMzM7MjM6QXB2SVRKcmhXWUdET3FwMEE4YUprVXJ3?= =?utf-8?B?Z2JaQzRUUENkU01SNlRyQm55amFjY2Y0T0NWVExYOVlxenJRZ3hJYzQ4enpZ?= =?utf-8?B?bUg3MnRhcy9FRm9jdlpnV0dkQ211aVRIK2E4L0plajRhYUM0S2Y5c1ZSYUQx?= =?utf-8?B?bm1FUzdrMGZoMHdjUkhLbUQyalRkMkNOb3BCcFFKZnBnTkV4eHhuVERMcTcr?= =?utf-8?B?eVRFdVc1aEdZb0RTeDM1blF0em5xZjBlaW4wcThQYXgzTXltRFlrRU1hZkc2?= =?utf-8?B?QzA2Nm9WSlcvbTJXdnBldVd6MTE1N09iVk4zazVqdG16WkJjTWE2WFYwR2Ny?= =?utf-8?B?a2wwUTBiNndvRzJoK1dLNzZOekcvSlJjVExETzdWeWJYMVJSNFZsT0g2RmRt?= =?utf-8?B?YlZkenRobE1taENudnhMTzZKVmNuZWZyRTZ2bGpzN3RibDFTcVlDUDJ6N2Fo?= =?utf-8?B?MXJRK1lPRDZJYkN2TGJqYXdQQUJ5bG0yYjcrNFJ1dTczYUo2aEJ3bEdzSGRX?= =?utf-8?B?ZkdwQitkQzkzNlNNV2sxRXFhemZNQVNZY2F3elpTN0lCaDkvdXBEK2tkektC?= =?utf-8?B?Y2V3d0pLNDk5eUN1dV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Eniew6LJ91jhhamagzE4MDySQCsGdSmlTZa6LCzLnpsHx3IAByYVFcxVEj5q+Yd2h0xA==; 5:AjK6xRi8lYShu72Qe5iM83Hu0eRoCFpIkU5Cd8izqAv/6FnfkntZrxvfByN41mPPBUVhHCa6aG8ACESzQzUF5VRZSrBqj+bTcN2JXzRmVhhR4HyxBtA3dNoOm5jZzMznTq0OSNBrh5f9tjYdW16Zh8UbP4vuLiCiKqppI7fp2EU=; 24:BgWohOFNvF7GFTKhvBh25U3gJJL1DQ3qM8AjCH/33GjhHLuPvx1wiK5O9iZsnMBODK7vqWXZPHwMg6veY0hhLeVwV1dWyoVSoANafaGryzo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1333; 7:E0RPUDE8rcYtq+BaKyC+gcgpDr5WWH6F3k9cyeN8jJHgm3EBUwPI6mw2f0Qw6e9PuSaxElEZRXGDAJzqO8AmD8b6dyjhdkWsR0+1u72F773XQ7ZdIukebdVBWpmxPUz70gjBOxLSmJoMKUjtpS7BQ+sGNvh8qEDK7Y5vy1Ha0K59OudxopQitylufCL8UpGAmz78V/DDQ/2uayycYaZbQpjH7k8XkyJpVZyNqJknE+jBXYB7+8edc1n7lfpE9FCC; 20:VAoLuRV0gAoQPH3C0Z1219CzSybrtA2aKN/n7/noXrlsnAucNBCoGk/Gp2QBiJw4UQRoRBcC0/eeTo/5NXKPxc2Yu1VaveizbS9NKHdbYKM57YH0uTgarzYWwRWKJvjMrl+xT+AvPBQQbEQb3CClPLQ3w/Y/cJWmXC70//G7Q74= X-MS-Office365-Filtering-Correlation-Id: 374a670a-12c4-486c-1d11-08d5b5a40ced X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2018 11:57:30.6422 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 374a670a-12c4-486c-1d11-08d5b5a40ced X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1333 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(-)