Message ID | 153063058712.1818.3382490999719078571.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 37C2F60325 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 3 Jul 2018 15:10:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 262AE28B30 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 3 Jul 2018 15:10:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1938428B58; Tue, 3 Jul 2018 15:10: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 9A7F028B30 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 3 Jul 2018 15:10:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4C6346B027F; Tue, 3 Jul 2018 11:09:59 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 474CB6B0280; Tue, 3 Jul 2018 11:09: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 3188E6B0281; Tue, 3 Jul 2018 11:09:59 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f197.google.com (mail-pf0-f197.google.com [209.85.192.197]) by kanga.kvack.org (Postfix) with ESMTP id E62C46B027F for <linux-mm@kvack.org>; Tue, 3 Jul 2018 11:09:58 -0400 (EDT) Received: by mail-pf0-f197.google.com with SMTP id f81-v6so1200229pfd.7 for <linux-mm@kvack.org>; Tue, 03 Jul 2018 08:09:58 -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=YepmwfPVtO1jv08Lja1MGQtIYqCg9v2S8dRI+tZxdYE=; b=qYtn1/GJ/THCHcKZPiPBYttudmehTv1KOUA7MTzX/0rh+OuiIFvpGj78k9Y5JCt7vd y51dsGfRwK2ap+TM7AFVGparXcDPpoN7IuFmJnlooZd2cNrYNsI+eTf4uiILMu1qV1oJ uun5bjKF1ab8uP7yn9F5lDZJu79Biwvofq9k2Qn8PRD4XO6lDJyxyghtG1yo2++EBlz6 ZGap2oc6ICvfI31lQuAEOw4CO7HZTpFLEw6ZyeZrI1hmFLIR8sCxO+zeeUUnA6CwjM+c IpfyYdsxea6LSi8oxojqhCufqcOq099oS+Lqnn/Ous6wzK/4tXVe6EDSFMByJvLcctpz 43Gw== X-Gm-Message-State: APt69E32qpfDSn3FhQci27i7X4sDoEhIozH7BFRqG+t5/2grwF1mOpwx JxUh5pFnIm/pMqx23qcaetkpa+MhR0ev2z4IG68BxK0eoHHDtJHFDrSMD4jtbCncj4WWPCr3tzs Up5q5Ylb0k+t6zM1QTv5CU0RqU0DyXH6CfWYipmnWmJuMnkd9SREd4yDejCrgwvl2hg== X-Received: by 2002:a65:43c9:: with SMTP id n9-v6mr25535764pgp.399.1530630598635; Tue, 03 Jul 2018 08:09:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIzdYvj8criOlYqDyfTBLAzmYQOmREYia4y646z25FfLvJNtC25cP/wz4F6AgeCJF8J+dhR X-Received: by 2002:a65:43c9:: with SMTP id n9-v6mr25535697pgp.399.1530630597542; Tue, 03 Jul 2018 08:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530630597; cv=none; d=google.com; s=arc-20160816; b=rY8K+qWqGWvvmnzMMWibPfqIzgi3ybiIy2sOyW8Eo8FKycNC+J8j08Co9aKA5V/Why Nwe0UgkW3CHhm8i1Ak7gOogyxgBbz0kDzrgmPw6lpJuSuC0Q6NrgAjtgxdDVNOvWc1/U lhTfBRFsSNSL4vR0J5XRbonIHvCQdmwgRF56pObIABTw9RYj1fBD8f82pW338iYm2mvB OM/SzcdW2G07IK8c2vOh1nw4dEeH0P/LkcOO1xNuioqFYdhahNOVD4+WtSPFe5BowT1f aGiIysq95aDK34MoySZj1YVjWLOA7eTfk6mxA+ES4AmPGSomNB7hKCrWADZLAQPJyEaB C14A== 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=YepmwfPVtO1jv08Lja1MGQtIYqCg9v2S8dRI+tZxdYE=; b=aNGa18om9fGZtxyZksDqsnQQMgRW+9QlFzBRFLF7QMJbnWMDZRNbSq8kTqRbOlYDhl jIfALZtgiPshd5zncIcXdk1ovjMXIhQRjXsXaPTJLnCEURP5akJYA7aWcu2xxn8CadSb 0yHCLEamceZ3G35LLkd1p24iOLBnvj6UK4CJKaGMaMRLRfSZlGPcx7sAAzfcGR30fKNk 8xIOKKGXBeFUbcXWIH1eZUac9ga0xE6HMU1lBcClhlg/ruxUsfRfXSv89Zdwn1ZBzXBU t9RppC9m0LZfNYhUZgfGzBJu1L2cd/FMi/7KQ3cTxAPzIXzWdEpl7yQCm+aMJEJrJEU2 BFxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=LyUmVH0r; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.6.94 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60094.outbound.protection.outlook.com. [40.107.6.94]) by mx.google.com with ESMTPS id r7-v6si1284826ple.435.2018.07.03.08.09.57 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Jul 2018 08:09:57 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.6.94 as permitted sender) client-ip=40.107.6.94; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=LyUmVH0r; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.6.94 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=YepmwfPVtO1jv08Lja1MGQtIYqCg9v2S8dRI+tZxdYE=; b=LyUmVH0rsvxhdRAxWFrtkhOpgaS9VjAnBbX1E/0d0ZK1KRPNZcmvFFfsogvcQ8+UUYfBt1PVcnvk60QatY3MO+SprHQvXAnv9SvWuEFenz/8nIYfAfG9/SYhhXNzuwAxAUyP08R02SFX3ADCvV4qIso4yscwXED9paeE/8ZL2iE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ktkhai@virtuozzo.com; Received: from localhost.localdomain (185.231.240.5) by DB6PR0801MB1336.eurprd08.prod.outlook.com (2603:10a6:4:b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.24; Tue, 3 Jul 2018 15:09:49 +0000 Subject: [PATCH v8 07/17] fs: Refactoring in alloc_super() 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, akpm@linux-foundation.org, ktkhai@virtuozzo.com Date: Tue, 03 Jul 2018 18:09:47 +0300 Message-ID: <153063058712.1818.3382490999719078571.stgit@localhost.localdomain> In-Reply-To: <153063036670.1818.16010062622751502.stgit@localhost.localdomain> References: <153063036670.1818.16010062622751502.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: [185.231.240.5] X-ClientProxiedBy: AM4PR07CA0035.eurprd07.prod.outlook.com (2603:10a6:205:1::48) To DB6PR0801MB1336.eurprd08.prod.outlook.com (2603:10a6:4:b::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7ef2dfaa-771b-4ca4-f893-08d5e0f706e2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:DB6PR0801MB1336; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1336; 3:I3/h+Tiw6hNgszws3WYvJMWwWv6fQOHWrXD6BWMlQDmP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PnhYQcJtF3RflUFUgTrQ0Oa2XOicN8RSsLp+jDLbEIJrm8wFz9QV/PkCamQFv7Potiy08IcZlj+GJR70eHpmqY+ULdsI6ZJIGJp0RfmkQ9OGcMIo5tnGnDDGSjE4UTN/nxkdiBPpYw76MBTaG/BaqZvUpO/spQxgOlkQMG7r07HSXYiSC3VE0ebf4XkDhDkaMEvlYNhgDGFEKn9hc5eBadZ1Y+h1VTj+8BSD/IcFIq0eUkAEmHYHzxWzOJjiUlSmKvJP3qOEAumOTqTGc406lO3Xfz5HzbjERoL6LWEzX6Oo6; 4:hj+DAXkhoV021H01QUs78RVAyUcSJDNlwaTMy2jpSmXt9NAdFvIJkJ5p4q79jFvVVdCosnblINq6eaGQFYTN7jM55HoZsxxQjBJQHY0Vuo0p3ms3thknBNB0AaLC6ydJQ1oKupe8gwoHaw6/i0avsJDrW6tmCjGLMOnDLVz6G88Ly7huI8azhnYw6HLm0uAK+2QXUd2woQiMKS80JJKETvA7SjBwdLBhycEfALtHmYKe9B0KCuXU3mOQvhQ8AD3YcXeBlLgeXOVa1Zsho5GGgmJTN6j6DYzIdf2JRuBseVGih7DUZJ6qfxU//OtojCpYHgHI4kucLODoiw83upzWfHVrRXpm1Jr8CGOeHSwOaUZNCpMzD8wxFrIEMwAmQTSD X-Microsoft-Antispam-PRVS: <DB6PR0801MB13367ACCB21AAA3F6E8519D9CD420@DB6PR0801MB1336.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)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:DB6PR0801MB1336; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0801MB1336; X-Forefront-PRVS: 0722981D2A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(366004)(39850400004)(136003)(376002)(346002)(396003)(199004)(189003)(478600001)(26005)(16526019)(2906002)(23676004)(14444005)(103116003)(39060400002)(186003)(66066001)(47776003)(2486003)(7696005)(53936002)(55016002)(52116002)(6116002)(105586002)(25786009)(106356001)(3846002)(5660300001)(8676002)(97736004)(50466002)(68736007)(8936002)(316002)(956004)(476003)(7416002)(81166006)(446003)(11346002)(230700001)(61506002)(9686003)(76176011)(386003)(7736002)(81156014)(58126008)(305945005)(486006)(86362001)(6506007)(33896004)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0801MB1336; 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?MTtEQjZQUjA4MDFNQjEzMzY7MjM6dEZnWHRVOURQbDNXSWNkNWZ5VHpUMVlk?= =?utf-8?B?V0ZERjdFbWVBc0tRWE94eGJ5bkNESEZWc1AyTm5zYUlBVXlPMTlYZEZNR0Nx?= =?utf-8?B?cVprczhVbS9OQlNHSXovYlVlT2JaVUdxUEY5NlRSZXBVWmd3ZHNDajMrZktr?= =?utf-8?B?UUM0UGtrY1NvbHJPNThIZkV6Q0pkNkJCaCtVRmhaTjdkRDY0MW01T28zM2Nw?= =?utf-8?B?WFQyZDJqbkhtam9iT1dnaEw1OFNYOGZDR01oZThoN0ZjM3ZEZGhyMmJ2U0dX?= =?utf-8?B?QkxPYlRjUGlaaFNDZzQ5VFVVT09CZllXZHFQcHdsUWIwVE1DUjRFeHhBUVFS?= =?utf-8?B?bGM3bVVXWGprdkQ4K2tzTHRGbmN1cUxWc2c4QzYrbkNMMjlZTWhhZHFyckRv?= =?utf-8?B?Rm51ZUdZV2Y2K2JIWmp6N09UYXRC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X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2018 15:09:49.7256 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7ef2dfaa-771b-4ca4-f893-08d5e0f706e2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1336 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 43400f5fa33a..002e46d874da 100644 --- a/fs/super.c +++ b/fs/super.c @@ -243,10 +243,6 @@ static struct super_block *alloc_super(struct fs_context *fc) 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); @@ -264,6 +260,10 @@ static struct super_block *alloc_super(struct fs_context *fc) 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: