Message ID | 152594597832.22949.9366506937000436227.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 F236E60153 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 10 May 2018 09:53:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E12241FF13 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 10 May 2018 09:53:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5576288AE; Thu, 10 May 2018 09:53:08 +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 5297D1FF13 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 10 May 2018 09:53:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 568FD6B05E1; Thu, 10 May 2018 05:53:07 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 4F21F6B05E3; Thu, 10 May 2018 05:53:07 -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 36D796B05E4; Thu, 10 May 2018 05:53:07 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg0-f72.google.com (mail-pg0-f72.google.com [74.125.83.72]) by kanga.kvack.org (Postfix) with ESMTP id E58736B05E1 for <linux-mm@kvack.org>; Thu, 10 May 2018 05:53:06 -0400 (EDT) Received: by mail-pg0-f72.google.com with SMTP id s17-v6so622907pgq.23 for <linux-mm@kvack.org>; Thu, 10 May 2018 02:53:06 -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=ZdtmdxTJ/MK4qbZQnUV0snIHkiYYUda/wopTbvNwoCw=; b=MXFAAwr7jYw3uzW6PpTsWEU7RbSZfJptv6F7QwGs58dY5rNkozOEy5Os743HmRyeqk gKgBKZJDit5fk6HQd6Oe1wEeDM9ZaaqdxHakh/IaR5lFPgSwmIWhzW6+QQero7r5Yv/4 k40E67Yx+cLBmcQaDrPnIsIQV+0tUI1H5btWuyTL1qoQpswNA4945WlRo+tqp/4HtD1S 25AcWJuRjgrdjNSafNbhB+8Q0ZMmD/Nr/z+GoAtLQ2VcPVKSEf6ywK9GVQc5lVaSkCMX q6iKuFdmHD0/1bsTq+vPHozpNB2mARXUuxgGS2laGU2a5xMc9QE1A3yIrRdIQurDuoNx ISPg== X-Gm-Message-State: ALKqPwc7L8ZibxQQV53zyWByOSGsE4ad1mUBgEx9fsFVtnErQzWx3XUW vM8ES1koG1OvEI9hp/ZlihgKkqW+/edC50q0zO+6Ywql5NGin24XHBiCREV/smZOq2YsTnrR/Ei 9TEHthVrWlWUVNFWK6X8UpC8/53NdzOqrsnij3fn6ZKXieO4Ig9CMzziJkgUX2gtxFA== X-Received: by 2002:a17:902:b949:: with SMTP id h9-v6mr734804pls.146.1525945986625; Thu, 10 May 2018 02:53:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq74/V9KW/nN95hJw9Na41l2e5udJEE2ZT1/0yJ2edGiyQ8WeIEtZzhxJT0X4kprmgVdu/8 X-Received: by 2002:a17:902:b949:: with SMTP id h9-v6mr734759pls.146.1525945985868; Thu, 10 May 2018 02:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525945985; cv=none; d=google.com; s=arc-20160816; b=kfxQ3Z6rkvlwaUaqHKJToub8SCEhf631f4pH+/EoMEJYAfqM4zgDbvozMlI4ogejoi GNHjd0q7MXPh9n6j0H5jsYAj6PQeiAFEVG9kH1smrfuqCxugcPJc7IInNXtAiyU8NxGq 3kEx1B6QcuQNIUj7l975wH8ITOgkqjhgPtMVgKLpxXN+M47zv+SHeJSSbO4neW4NWaA4 hV/Cq5iXYW4M2lydigXfIpZ6O4guUz2GrZR0cfRA4Is0VpoVb1A2bd8qpjNTCk06sRAm dKii8MtgNc199NP58NXaoRPZZB9lhswrNkbqTJ+dphqg8MZxk2tn4p9+vrQa4InUcYac wDuw== 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=ZdtmdxTJ/MK4qbZQnUV0snIHkiYYUda/wopTbvNwoCw=; b=E2nCX5yvQSOxSYAhVF0hz8Ik4oUeoYq4BdsFL9ekik2H+JOrD/wv3QUQoPv8rcBUVa 7Ky0V5nyJN+EtnRyS73dJ/XRWU96vKuOtoHYAbbxJQt4c5PrMEvSa+LXy7/tRHgreOc8 yxElsLSoS00e1875cy5GE3dv0rZs4rAx84j7p0Uklidprf60AAp4jzKj0ZD0rP3zk6kf KCR48hqT5k86it5A10w5ZSyhFsk2Wbkl1r5NluvN4IW6Jcnfz83npfSMw8zzIvhwu+bH Tn5QIktgbewEhPJDFjl3FavyGyfF0Gm4I3eUbhml2GuR+/MGV68zc+qU0WqFNKvSQaIQ ixog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=R9M/AcEC; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.2.133 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0133.outbound.protection.outlook.com. [104.47.2.133]) by mx.google.com with ESMTPS id w21-v6si380808pgm.433.2018.05.10.02.53.05 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 02:53:05 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.2.133 as permitted sender) client-ip=104.47.2.133; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=R9M/AcEC; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.2.133 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=ZdtmdxTJ/MK4qbZQnUV0snIHkiYYUda/wopTbvNwoCw=; b=R9M/AcECsJp0HspMaF9XsNJRkO0QYLrq/CW91ibboP8b2YgU/aIL9pGFr1XI1zD4bTAp7pCUY8OUhxLDC/RfMEhk+7VD/OSoGGOrH+fGzuujh27KpkNLl2cR2AdjWF4NeYYErpom8fvC6RSmAlYU5yqV866s9A1oEGZYaw5dvJ8= Received: from localhost.localdomain (195.214.232.6) by AM5PR0801MB1332.eurprd08.prod.outlook.com (2603:10a6:203:1f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.755.16; Thu, 10 May 2018 09:53:00 +0000 Subject: [PATCH v5 05/13] 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: Thu, 10 May 2018 12:52:58 +0300 Message-ID: <152594597832.22949.9366506937000436227.stgit@localhost.localdomain> In-Reply-To: <152594582808.22949.8353313986092337675.stgit@localhost.localdomain> References: <152594582808.22949.8353313986092337675.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: AM5PR0701CA0019.eurprd07.prod.outlook.com (2603:10a6:203:51::29) To AM5PR0801MB1332.eurprd08.prod.outlook.com (2603:10a6:203:1f::10) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:AM5PR0801MB1332; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1332; 3:R+F/NJ8Uex/3uZiW3EXHmcPIc66/eXT7CNCGAiuaYY9fjVROr4FBQLIl2KuwlEQxIya/Djf13X8X65YzKHLtqw4v/s5EfCwnJbzpll+LKTsVwtEjWCzoB9AxYLjrwy7vkOYfdREGP7N5VGweJWaKq1IlJCLDBTsf3a1RUWLzJxzx/57CjWuxaVZGa3Tq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Ybozaat6rXtbUKufyWL3MhUPD88/0t8t8dx5JHmKqoSrZqt/VAKIaj/3wHLRwZY+414eSKUrrrm0f+zWC6isuHyikgwlIGxblOijnOgGcHe37El02XALntQjF7YQvpXB/AQH10DNAeIZqhRM5arWXnnjD+; 4:Qr1S0BGdguIvFOhDeEZXpQE4WDuwbjUSAiWTpgGdx9o46GQib84Kne4lWM9gwKXiHQxbjP8dElMK+3kAfWLG647+phB8/dVlDJnUuvZw9lM5xob9zw/gTuIWpsIxxDbeoEppCjY2H2muAKPJQOTn+AeBmfG+e9VP+1fDl0U7hSYCQEkHI9Ev4XBUPQwalpGVXUOnSVsgAgzhh1jUZw3Jo3lVL5Num+VmOUt9bMsg8TI+U0i3FVtbuAcWXSublyP8QugFRlBHkp5edLH+UY05Sg== X-Microsoft-Antispam-PRVS: <AM5PR0801MB13326A2018495BFFD299DBE1CD980@AM5PR0801MB1332.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)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:AM5PR0801MB1332; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0801MB1332; X-Forefront-PRVS: 066898046A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(396003)(39850400004)(376002)(366004)(346002)(39380400002)(199004)(189003)(105586002)(68736007)(5660300001)(66066001)(3846002)(16526019)(61506002)(50466002)(2906002)(47776003)(6636002)(7416002)(59450400001)(103116003)(6346003)(76176011)(305945005)(55236004)(6506007)(386003)(81166006)(7696005)(33896004)(23676004)(186003)(486006)(26005)(2486003)(52116002)(476003)(956004)(446003)(11346002)(478600001)(106356001)(25786009)(39060400002)(97736004)(9686003)(316002)(55016002)(7736002)(58126008)(53936002)(230700001)(6116002)(8936002)(86362001)(8676002)(81156014)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0801MB1332; 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) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTVQUjA4MDFNQjEzMzI7MjM6dUE3RjlYN0Q2Z0l5M216Z0F6cUtWUzcw?= =?utf-8?B?RGFtRVBQWlBNaDNLdE0zVGtMTlJWd0hzOE1wdjZON0h5VXk4eExzRWVZUkZQ?= =?utf-8?B?VzRiRm5VYm9kVVJXTXpoN1RUYlFNSmVHNE5pU29TaDBJaFF6cStkek51cVVt?= =?utf-8?B?QVNXZXdQd0J4UWxPU2JCL0gvR2pQVnM1OGNjWEtsM2Z6RkZlY2orRHM5T2RE?= =?utf-8?B?SEozQ2xPMTdYRnAwZlNSRVBMU2pIazhMN1R3cTJQVHhrQm9oZ1RRcEw3eDRn?= =?utf-8?B?NDV5RlZBcmViYWZXYUZIZG5PaVRjTytqQnV2am00ajY1cWZjSHFzbklEZ01t?= =?utf-8?B?UzlEeHpYakVtRmN0dDJmbFp3dUdtSDFyQjloR0IvUEdablRUMi9VbmIxbEx3?= =?utf-8?B?Z1FwNjF5ME51MjhlR1pyKzNQbzdBODJ3S2tNNnRoUFIyVzRxU2szcGxqanNV?= =?utf-8?B?TUduL1g3UUxxelB6VkNEdnZ2ajdQMVZ5bFNlempRdVptTFIxYkVuVjBBMDVR?= =?utf-8?B?bmFVL1BJQVZXODhLM1hLclhJaWd3S1dJeDFMa2g1NDdKM2hqWGU4VTU3MVg4?= =?utf-8?B?SW9ON3ZSaThDcDArK3drSGwrNzR2emV0ZEJMdkliY0x5QjZBRzM5aV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WlFrcGAOD+IC6vc4a0sw==; 5:a8jxEiiqPBLTwE4FcnUlzMIl0CEGcFJ2edVmFUe0rfXofElN1SdwqbcR1l5L/4yO2RzzrwCI1fq2jdZJkMUHp+OyWiLDIPkYIeoQxfLs+3wj0FE262kMptF7PbthiJ/a0P6P6popyPsn1Fd0MYWDdzbqHSjAywny/NSTqXXSXSg=; 24:rQKQh06PlMjhz3kPHRarPG7KJqtwCNvuav1L4vWzcDIFIGlOVrc9HaYjBRkbY+xIC7wCxbl/qQsSal1jU3DYZSBo/NitGX16Mfjy1/zOHxE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1332; 7:kW9Ckvk1F16YGwneAKzDbm7hzJyescT0SaYDcSGLVPo95dFbyC2ZolxMsY7fIo4YMtLW9GcPymOTW/cxmiUE6EFWVmyiOMr9tpAyp/ddrvtuIborJjpuTA751UYLji8nCBykkPUqYZ7ZixK0tv2nZoj+sXaT3DHDEAlsembmxH5RlFQ0iRxsxzRDvjJ+cVJqQHncTpsWirA2/KMxa7DoU+Y89rZwKBbrJ3oCy/0cN/GfWAfjno0OJ1KVrUo5zmJl; 20:nnguDEJdbLgf0UpWLJdEpUwLL4lWUtjGWpHg2fWctHxgh4EehwIinxYmdMO5wjygH1dja+BWGVKGhKNCFEuqd7/SyFd1/C7fQtTiO7cSNCgHqx/We8LotdOK4EmNeFO9ltN+dfiOpnx+s25XU0IGQJdZxkE6Gtr/Nk9rBOnazGc= X-MS-Office365-Filtering-Correlation-Id: 75540c30-8f4c-4a9c-88dc-08d5b65bd185 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2018 09:53:00.4200 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 75540c30-8f4c-4a9c-88dc-08d5b65bd185 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1332 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 16c153d2f4f1..2ccacb78f91c 100644 --- a/fs/super.c +++ b/fs/super.c @@ -234,10 +234,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); @@ -258,6 +254,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(-)