Message ID | 152698370507.3393.6943904031776030931.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 9065A6016C for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 22 May 2018 10:08:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09C84289E8 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 22 May 2018 10:08:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1E9B289EB; Tue, 22 May 2018 10:08:39 +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 7C45328997 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 22 May 2018 10:08:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4C9F56B0005; Tue, 22 May 2018 06:08:38 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 479C76B026A; Tue, 22 May 2018 06:08:38 -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 31D166B026B; Tue, 22 May 2018 06:08:38 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f199.google.com (mail-pf0-f199.google.com [209.85.192.199]) by kanga.kvack.org (Postfix) with ESMTP id E42686B0005 for <linux-mm@kvack.org>; Tue, 22 May 2018 06:08:37 -0400 (EDT) Received: by mail-pf0-f199.google.com with SMTP id e7-v6so10831922pfi.8 for <linux-mm@kvack.org>; Tue, 22 May 2018 03:08:37 -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=b9UPD/IfIGGbOr+M4Lq691D/JgW5ZmeR0yu8brP/nJU=; b=PoCd2hqr7CKOtkrRX+OwL0ZYX0i6+XATMZGtkxqNhxqKjwmtUBbES7K/y6ciMcRVO2 CjtVuk1XwmzeR1MGwiEkhu4c57BLRBfUuFOAJ3JsgvAktGfBYE1JZT4u7YJzI/jT7/rz HiaUWZVkmsfMefoKT6mk7a9PLoIT7dXX8PQh8ulBP57ecF9th3vmqSFSKKixLigimr1q iTPTqkkntlCex0nW7snzX48bpPU0cptQigDavx60N0X4pQx65gzcJyCRc0T8LTkCNMhx rKJCqU+qm9IiAwaLo2S3Yz5wXTtrCvujq87NPOE4qmExsK2RXhDwNydwoeGL+3p4sVBn Liaw== X-Gm-Message-State: ALKqPwecKHfM82lVQiAtZpatnq36ezYDCIcreE87aKbYOv0b9ydpekNK XELCPvyx7nyRIqaw3hRv1cHSKq/WyLw2Cc+1RdcI8sqJT6ThW17PksFRqPBgYwGCFLyDSdvgutz lQy9TbfWh6DSL9NxQXWIMxRr7iziof/aBgS2K3N04ScvXsIwJ87IVXqX1QkJ+AaAvsg== X-Received: by 2002:a62:1306:: with SMTP id b6-v6mr23157062pfj.58.1526983717635; Tue, 22 May 2018 03:08:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpD7a5gByqNwo6ltRwzYQ7geTzaC3+oy5c2YiNTkix+S8d9DmRdYco1M4FOGONS6ODa/gSf X-Received: by 2002:a62:1306:: with SMTP id b6-v6mr23157019pfj.58.1526983716873; Tue, 22 May 2018 03:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526983716; cv=none; d=google.com; s=arc-20160816; b=iP8dsHlABlp77kjbp2WRVsmbxUDwK+LFgsPyTxwfQ/tGE/fcJrJPEdKI6QWaHiTcyy +Sx5cSQ3jnopFItGcVUeKrTUYH+S1xEdw/DRuNT7Tn2gyau326denkKK9WmYXg+xrwIP 9TMgqwnBSwJs8i/K9yUCnwdqlHojJGGc4kQwV97eravTcpZVZTW/u16433IOVBX6oAh/ d7t46/5x9OP9xZzl9H5oCCYMEuufFZmmsoo0+sJkL4j2izDMEL5J/JMo3Jmci/I2CCtX hprp97GCDGUskTovbSGYp07KaJNFvRbkc4nlb/iQXyzj1ww1vkQyoG1bLHRs0EpYTzlG 8v4Q== 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=b9UPD/IfIGGbOr+M4Lq691D/JgW5ZmeR0yu8brP/nJU=; b=JNXj1QB2/CCbr00NMS/a2QW6lIG8One+iMFWSbGsNb1ZJhwyK62X7zDIBQLTHv1U+f p1a20GhHHJhHCnrs7RWCXUwCrfXt0wV5O4f+ZkWvPzsIj4cMo+xZD8rm1q0esS2UUSIs 74wnqrgIMwkVlRBtzosUhVyYJXKwVv2POVJPd/+MaPhA1O0WSPF5FkExY9gaQWIIdTbX t73fveXlwdudm+lw4mZgof87gMseVDffupCiMdlzhQbpoX5Q2k/eQOnyQOaD99xRhs3W Mis/scUDNSy5lUSDCVo4dO+4znBffC6bs68OVywCWW8jBhDkc+ur7f71e8CgrvQGHaT0 EyGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=CHnRwHY3; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.2.98 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20098.outbound.protection.outlook.com. [40.107.2.98]) by mx.google.com with ESMTPS id o9-v6si12628398pgp.508.2018.05.22.03.08.36 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 May 2018 03:08:36 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.2.98 as permitted sender) client-ip=40.107.2.98; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=CHnRwHY3; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.2.98 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=b9UPD/IfIGGbOr+M4Lq691D/JgW5ZmeR0yu8brP/nJU=; b=CHnRwHY3SVyHa9lsVWKt7Ee9HKqB8a8UYRaRI2FRf9UVxsZ7hrcm7lC5JDRohJljF3T0FkO5glkbQ0Khw85WTKQWyE2eOBSlIfRlEGxRwtLLpGENlmjDSM0wCsS359WAHHrL27PlKenl1cZpOe6s3ENB9J63wuYL08nCSHYqHzc= 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_CBC_SHA384_P256) id 15.20.776.11; Tue, 22 May 2018 10:08:27 +0000 Subject: [PATCH v7 07/17] fs: Refactoring in alloc_super() 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:25 +0300 Message-ID: <152698370507.3393.6943904031776030931.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: AM6PR0102CA0007.eurprd01.prod.exchangelabs.com (2603:10a6:209:14::20) To VI1PR0801MB1341.eurprd08.prod.outlook.com (2603:10a6:800:3a::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:VI1PR0801MB1341; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1341; 3:KLA6pR9dTWdwWDq+OEjSnIvIzLP9OWm6BgSVtdOP2ddiWxMYk7VeG1p/4ztTRSLn63QCVyDB9xGhlKoqOC3TbmO9g6V8/IPc4r/C38uye4yzHSf1pSSFFQ2Tm7IynREaRQa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egzniaYO7cuKrl+WFAZjjS1anuYmGNxo/8pS+CcZyJZS0NKsMAzK7qi+Xmaje6ldOWx327kjxKyBggyxyXFNlu2lOvl/bZkU7Yol2rD2DPD5a/zQBBU8T8E7XmfY1VtzFM8t15ysUncB6lzgeZtW0MB4mJY/jb61bJh+gQAOc4iV9hyiLltV9QkdvINx6+jXziuEZD9vQAmTpVudEnQfQUG/caAU9r3tMf8X53qz; 4:rrKFjSy607YzUO8B0+zaPFajM3QnBmNpZAD2b4sex9eoQgpI9nUS4+uDHI92ngregmjqhwgF97O6oIo9U0R+VFvG90rO5EtOUGpRmLQkVYCIqFd3dGBLDhC0TTtuHkfk6RKXID4Q76HvtXEmSOkJ3cHclqiw12EMi9AEh7p6laXWAbZvhJ8XoY5zlhorzeUKe3EGpVv5S+tvj16pdKHdB52lwnQnVdEcfwJ2xGV5gFX3ej3XQcNzuL0XHxgKakr2ucdpS6tLbOi1rSL4/0gxLA== X-Microsoft-Antispam-PRVS: <VI1PR0801MB13411D4D5BF867CDB6CD0862CD940@VI1PR0801MB1341.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)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:VI1PR0801MB1341; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1341; X-Forefront-PRVS: 0680FADD48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(376002)(346002)(39380400002)(39850400004)(366004)(396003)(199004)(189003)(58126008)(105586002)(316002)(478600001)(103116003)(39060400002)(68736007)(8936002)(8676002)(81166006)(81156014)(86362001)(52116002)(2486003)(23676004)(106356001)(230700001)(3846002)(305945005)(6116002)(7736002)(50466002)(97736004)(6636002)(55016002)(25786009)(11346002)(486006)(47776003)(476003)(6506007)(5660300001)(9686003)(2906002)(7416002)(7696005)(61506002)(33896004)(53936002)(386003)(446003)(16526019)(956004)(186003)(76176011)(59450400001)(66066001)(55236004)(26005)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB1341; 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?MTtWSTFQUjA4MDFNQjEzNDE7MjM6QWVCbGg2TzJkTWRsOXhXclo2QnpHcHRR?= =?utf-8?B?QlBDN2VPaUpIcm1aNVpPNXZoSjJtWW9oekNrMUdKOFJOT2Q4T21EdlBZK1p2?= =?utf-8?B?N2tyR0VxRFFqd1p2VC85MnZEektMM3R5Zmt5T0o5MndtMHkxZW0xai9Idi9M?= =?utf-8?B?RUVVZ253Y3FCTTNSZ1p5Wld2OFh3UDJoME53SmZ6emdISE9hZ0s5emlVWTZu?= =?utf-8?B?aURJbkRGMFVOT1ppMmVraFZVWU9MUnIzNCtqcTRGMTN6MGJualNQb3lQQWx4?= =?utf-8?B?a2dldW5Bam5xQVpCNGxQZGdKekF0TUY5c2F0SmhvZlFKV29DcXRrQUJTNU1y?= =?utf-8?B?NU5PQVVpbzBVUWFRRGxsRTJmZDNwV09uVDRERWMyenc1Yyt1U2kyMFdPUWFw?= =?utf-8?B?SnVwZGpiV2F2QittdXhCMUZIYkRMVEFvaVI3Uytvb2QyWEFraU9pU2NNOVE4?= =?utf-8?B?YW9Fdm1EK2hYSmJLN1JpUWhvZ3EyY2lJTWR4TDFBY1VmSU5ydTY0QnJFeGVM?= =?utf-8?B?azVPZHpsNFM1Sk1IOWdORXh3UnhOamh5QXg4MFpxSmNYRm1SbjhRM2tlUTFE?= =?utf-8?B?dzNxdU9UT1M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1aOmFOUaH4iNfx2r5k2Pc9phw==; 5:ao5A0B2xuc3FffQdp54v6ski6SChllWqjP6KMQ+r9LQdGixdQLofpTfGV8gjBsN8xmWeP6KZaHWAqhRp7taWaSEvtFXC1oJvACLEtiuWjz6EbfZ+yKnAxxDb9OuZhY6dn2cm8mCBPMiMrbfWzqOvfY/Ik5L36Ha7kGFCTuBBUCo=; 24:OlF4ekMRivZBm+wGm/gwSuObKXt8GDsRAr7bL9JjR3Z9tVzZ5bWOHRNQqwsyTJmuwn8tYmT4XwhThl8PoNq0YVO1c2oCXC+JZj59ZNcuY8c= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1341; 7:j9mI2PhAWajb8jytgoyzb1q6OQqFeVUM6/17jJXgEIHXISKcAN+8n8PslR5qXUsZ42KO3TU9TI42H0RS3SzRe9UWDATAKq55mpFADm1q/1Gyzl3oBochhe+BNHjt1Q+XUnyIS7pzdAccSoRCp2J+Z1O85kjQeSwYJ8fyuBxawrn+yJOF51E2zgzIzuxghnFjthCdxRVPbBvvJiaCPolnTTlSbO9W2vuvEUB9P9Z6mO1DZzagIzRR68H/ceJzFdmX; 20:JPCYriwW4ZBxwwJbkEpwfNsmJR2Etp9dpMrRMQWnxSJ0plcmMGNIInwUB0urqFKtequOTtnz4VHxQVbcxDWwEPWzUKf+nUQIvHD2LwNbg6FKejnaZJbg23CqsjoB2ZBaweLplF7tFybm78FPG+VWQydLo4LOpcUBZozlsMDB0to= X-MS-Office365-Filtering-Correlation-Id: b7c33fe4-40b6-4a75-8f20-08d5bfcbf890 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2018 10:08:27.5406 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b7c33fe4-40b6-4a75-8f20-08d5bfcbf890 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/fs/super.c b/fs/super.c index 50728d9c1a05..78227c4ddb21 100644 --- a/fs/super.c +++ b/fs/super.c @@ -244,10 +244,6 @@ static struct super_block *alloc_super(struct file_system_type *type, int flags, INIT_LIST_HEAD(&s->s_inodes_wb); spin_lock_init(&s->s_inode_wblist_lock); - if (list_lru_init_memcg(&s->s_dentry_lru)) - goto fail; - if (list_lru_init_memcg(&s->s_inode_lru)) - goto fail; s->s_count = 1; atomic_set(&s->s_active, 1); mutex_init(&s->s_vfs_rename_mutex); @@ -265,6 +261,10 @@ static struct super_block *alloc_super(struct file_system_type *type, int flags, s->s_shrink.flags = SHRINKER_NUMA_AWARE | SHRINKER_MEMCG_AWARE; if (prealloc_shrinker(&s->s_shrink)) goto fail; + if (list_lru_init_memcg(&s->s_dentry_lru)) + goto fail; + if (list_lru_init_memcg(&s->s_inode_lru)) + goto fail; return s; fail:
Do two list_lru_init_memcg() calls after prealloc_super(). destroy_unused_super() in fail path is OK with this. Next patch needs such the order. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> --- fs/super.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)