Message ID | 152586705933.3048.9193770835306565439.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 186A760236 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 9 May 2018 11:57:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0722428EA3 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 9 May 2018 11:57:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF46428F23; Wed, 9 May 2018 11:57:50 +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 73F0B28EA3 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 9 May 2018 11:57:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 104F36B04F8; Wed, 9 May 2018 07:57:49 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 0C5056B04F9; Wed, 9 May 2018 07:57:49 -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 EBF956B04F9; Wed, 9 May 2018 07:57:48 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-it0-f70.google.com (mail-it0-f70.google.com [209.85.214.70]) by kanga.kvack.org (Postfix) with ESMTP id C3AF06B04F7 for <linux-mm@kvack.org>; Wed, 9 May 2018 07:57:48 -0400 (EDT) Received: by mail-it0-f70.google.com with SMTP id e22-v6so14688746ita.0 for <linux-mm@kvack.org>; Wed, 09 May 2018 04:57:48 -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=V/kvH+irehEmPuj2/nwW3XE9Z85uAHg2skL11L+/yTw=; b=PYKn9a0dCq2k6UQmKtOn/1WKQyfwkrPljKFhF/1teBFvlN0pmobsP3dKYr3Or4gyxM pWfqev3Csk10GLbezwlyfSeAlF8J6F9gUfaqUICg0uwK/KcP9fShct3NTCdyYDN5yMWx sGBtb7PWNF08nFLtNWCAC8+LnszVb0Wlor/qCIbcd4zzqlPGkOrI7VedR6irxwNE69dQ QQHEmodz9RmWUksiKrH1miBFDq6bYuvOCemBdYYDip46UIScCNykcdCk96P3/aW4+X43 U+nAqM8ZUoufqfDUwrojXg9fpnHglgfi1zmNB5mj5fDYdpnPbS6DLVeLOWYinKEku1U/ 4+Sg== X-Gm-Message-State: ALQs6tBF89le4keBLXnPx6x/q9ByfuWQHb9utQdE0Nm/12GqyDlq3WqO 8aGBuryB9k8g2sfzxvZTREz63DBh4dm1WMiFCW09tFr9vQHKGiPpV9L30l7Zmq/u2D3GI81dGx3 vNzf5CoUlE0H19ERFR//r2Fa1MnLgXp5O56xAu08MP+Kw3nT3QxDmYMQF+vPWoCNvEQ== X-Received: by 2002:a6b:8544:: with SMTP id h65-v6mr45939402iod.271.1525867068628; Wed, 09 May 2018 04:57:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr7WFKCnNq5eVrZe8ApgwVDsr4hHuXs5Ak9Lm++A6sa3E/CXsHg0Ga4BP3dxUPfjtGYqhjF X-Received: by 2002:a6b:8544:: with SMTP id h65-v6mr45939383iod.271.1525867068057; Wed, 09 May 2018 04:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525867068; cv=none; d=google.com; s=arc-20160816; b=0EeY2nihTLh072LcknV1dgIaI5g89Q/+Dd9koAwyPvj9G9Bd24c6Jf3yc/tyT2aEba +O6To5Wv5UWpwegDcC2GDUG/lYtSt/F2aukK1GdimoGNIJbv9mMpJJ/H3zsjZUZ6ekwf oI3GSOec8phlD+qmz72VS8B4OLWkU6Pu69eOPXsozCM9NJ5tdmv1jcfCuURXPkzze1iX uoZTidz+21iNKoD1OartaBDrZfyiJG9+Iux5daFKLH6ztWNwPS5YmfLTM7BIdNvR4bjt ZIdgmTOZJkULSVD8jJbkZn5u7+a0KOm7gdYqqHCOoKgXtf5AI4wEgPzM1oXn3Wp3/gYc TluA== 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=V/kvH+irehEmPuj2/nwW3XE9Z85uAHg2skL11L+/yTw=; b=cNJTM9q17edDSR7uIxSiSVyPNBgJKil0hLVj9Y2ya4GssCE56rHM7Kcxw6Vj3Mddbv tmgBDz79g8e5TNWVQAzwU+ZXgLRdL9cOaWBiHGXweCIZ//7zRUvFjDsOzuyVGMCnuzA/ VNbA9GYDwmblX/xbOjfRlZAaBjwOJxj0w8gtm1ZbG+yFXyxG3B0G8FdgNuVWCvMppKvO kXU052ICPJDaanVKGF6g9HRA2Cj+MX1Qe8j5/o45t04mTWGsnfstpS4GbYZP8pVcXzQx 3zWic5oC41JuI3QGsf9bcY1UohY4BFZVZtOD/R3RYDgytdopno/xOc3vGonvGKnz9UHf R+qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=ZMyLvjnd; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.100 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-ve1eur01on0100.outbound.protection.outlook.com. [104.47.1.100]) by mx.google.com with ESMTPS id 186-v6si17729949iov.283.2018.05.09.04.57.47 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 May 2018 04:57:48 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.100 as permitted sender) client-ip=104.47.1.100; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=ZMyLvjnd; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 104.47.1.100 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=V/kvH+irehEmPuj2/nwW3XE9Z85uAHg2skL11L+/yTw=; b=ZMyLvjndS7s3Z/AUQdKYWwW9I1DZGrKCgYwXhGxZ1cgZ/LT7jvfSGZOWscS1Tb9/vupzWXt0T82gtai1tDjJ9iSrvjCUW4CKL067Y9wgXg8dnG5rPfp6Bd/m9uph5ipeTeTbqXtK8iZDB35HBD4WHm71SDUl9W4LgUcn7bF1tg0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (195.214.232.6) by HE1PR0801MB1337.eurprd08.prod.outlook.com (2603:10a6:3:39::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.17; Wed, 9 May 2018 11:57:42 +0000 Subject: [PATCH v4 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: Wed, 09 May 2018 14:57:39 +0300 Message-ID: <152586705933.3048.9193770835306565439.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: HE1P189CA0026.EURP189.PROD.OUTLOOK.COM (2603:10a6:7:53::39) To HE1PR0801MB1337.eurprd08.prod.outlook.com (2603:10a6:3:39::27) 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:HE1PR0801MB1337; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1337; 3:h2abKOwAjX6aGMRwdj5UKMqHMAh6oFe9qRv9f5w1HNf+DnT+ukJIGw3S3zM0st9H06XZbyBGt3JouQMYIddNjBNowxjZ/h891w8athM0iTvaMeNu1vDzeaVDRiBB10rGTHnZLkYD1+O7rjh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6Im5yWGWDPafucnwjNtzDMThdN0ePq8IQ6q6BL5LyNprMaiU4tf5fEmjbe9R4pGVzHfB063MSrvVGZP9dKGz/kokGCVMKAqed0E6FOh1GeiDV5nPGZSMxcpVO7LAPkCLO41dL+c/y4EMfy5uKdY112WDtPZIgcRjuCIlKYVYP54BqgZbE9/bpJ02Y06go5mjtzfckQ2L; 4:nBMjfh2cZJf41cdbEO+rwzGjIpeAS/5iQ4rfIzBDB8LAeKxTDMYacZMHG3je91Rv55XmCwS3J38ddOT+zG9HCRUFVjzBAEJWhueoL865G+YY2ALwqoiyncnYLm7odv2zmKwuyL5IQphdThsg7IMyZVFe4eUeuRr6UdG9ZLc8HCAUgv4xx+awaNruIbEcNoaMTPH24mYKqimg1LzomQ2rjtq3YTLIUbYGXnswZbVjLu6doTAY9RezmP9/zHmiSai7/oVvAwYDtfbj3DPPPszaxw== X-Microsoft-Antispam-PRVS: <HE1PR0801MB13376F9DCE4476F533A81772CD990@HE1PR0801MB1337.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)(93006095)(93001095)(3231254)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:HE1PR0801MB1337; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0801MB1337; X-Forefront-PRVS: 0667289FF8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(376002)(366004)(39850400004)(346002)(396003)(39380400002)(199004)(189003)(86362001)(486006)(316002)(76176011)(446003)(3846002)(7416002)(2486003)(2906002)(52116002)(23676004)(478600001)(26005)(66066001)(6116002)(7696005)(105586002)(106356001)(7736002)(59450400001)(68736007)(6666003)(6506007)(386003)(8676002)(25786009)(55236004)(6636002)(39060400002)(47776003)(305945005)(33896004)(61506002)(5660300001)(956004)(81166006)(97736004)(230700001)(53936002)(55016002)(476003)(81156014)(8936002)(58126008)(9686003)(11346002)(186003)(16526019)(103116003)(50466002)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0801MB1337; 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?MTtIRTFQUjA4MDFNQjEzMzc7MjM6UDF3R1ozSmdQWHZ2bk56L0xYOGVUVmxC?= =?utf-8?B?QUhnQ1ZTUzlOdmViRzFVeFFMMGNjamhlSmVKTkVEWUthaGpXTFZCbDNkdjlT?= =?utf-8?B?ajRJcGxlWWc1cE1iQVllT2VoNTM2bmhzcFNES1p2c3pPcGpQb0RFQ0RVQzFw?= =?utf-8?B?Qk9taWNUZUY4NWJ4RmdOMmM3V2lES3RDQi9IczdBV1FESkFDSkFucEI0a2Q5?= =?utf-8?B?OFJhem90MHVUTHYyRjhKR3d6ODhsaVNEQVljeEVHNzBidE1RR1hVWFo3SVdU?= =?utf-8?B?NTFoOTl6N1M4V1ZuRkZnZU5xcElPK1ZGTWhCQW5mR2V1K0tiZnE2bjF6alFO?= =?utf-8?B?dDlYWmg2NjUrS2hWTGZ3ZXdZMjllbk9rMk56S3liZmdJTTUxVFZsY0NpRHdD?= =?utf-8?B?NmhyYUIxWm5aK3JRM3Y4WFpZZDNMM3FXd0ZwbzJPRDRjcUNZeXA1R1NlTENJ?= =?utf-8?B?Y01NNERMV2xsMDZMeHQrRElpVnpoMTJqUGM1MW5ad3dBWFduZUxxazNRUW4y?= =?utf-8?B?dmhZTTI1eXZMdTdkbGVqeE1hOFA5bi9IbW51TnBFYW1MYWNmSy9rVVgrRUpX?= =?utf-8?B?dTdLYUFaTkprZGlTS2JzTWs4RlpnVk9EY2I2eUlDc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3pr06fwF+zzkNTF3z8S66xFgEfTPcssYer4aqogUsuGe22WpvAvWRDY9yQ5Bw==; 5:xn2sxJgGxxTNbMgy5oMOpLDbG1JnpQN0zERugNFHTHOn6hSGiqX9Slhec/vAeEh3C1zcIaWYNDFoonaxAI56SQlMXjlnLzLgoGqmRljWVSRKoHzE+do2gVjLzpBKDqIx/VzYUyFvN84XrdUGLTBXlLA8wrp9RVly0aCJ1qw5nbU=; 24:FB+zS+yak8tR2uoYZ8vcXgvEuZVoHxjyNa3QI1RIjTMztIO4z8yYz3yAc5LNSl/aWcVgY48s0Kqs4Wqvh4CMNsudOqvENI+YFtoVdhNrKMk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1337; 7:cp8rW0FsnE7uYlwNdoZRHGh2XOyhmLPs7oP7kqPeIiOrsNv3jXyf1H5GOf2cNI0+7A3vz8BlGHlyJW3GMSD39cdBtBF/IJ+Q4VMX3kWEab12WTrBkuf9nCAUxi7DOqpeDFo9sb4Wz/Kd9Ih9NL/VX4wOr+WOdUQnTC9skysfdn/I1uNKXk42OfTgQb+1whhDXMn8VyxjT3xsImGIUwnbi83y7KVCk6K5QiL5fDfZ/OKi+cDEZUua82wc6PeRxvzh; 20:ZrUvx5KpARQ/ZjAoFUwQ53xOwmK4k/rJGPQ+P/X5O8eg1p93Ljf9PGUjWF7sLo7i3Yby4Gc+OY2FQhAaHb5M2RDp0vmCgnY3dziA50lHJEx/3hSymq8luC4Tk2R33tr176bWQczs0HrLY4U0/OFrjVjp9HSaPJevxf1awi5S8Sw= X-MS-Office365-Filtering-Correlation-Id: 02b92624-ad6c-46f1-a927-08d5b5a41272 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2018 11:57:42.3279 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 02b92624-ad6c-46f1-a927-08d5b5a41272 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1337 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 036a5522f9d0..d95fa174edab 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(-)