Message ID | 152663297580.5308.11314227717473130012.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 2E9C260230 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 18 May 2018 08:43:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D7242842B for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 18 May 2018 08:43:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 111A328451; Fri, 18 May 2018 08:43:10 +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 679012842B for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 18 May 2018 08:43:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6CB516B05AC; Fri, 18 May 2018 04:43:08 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6A2CB6B05AD; Fri, 18 May 2018 04:43:08 -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 51EE26B05AE; Fri, 18 May 2018 04:43:08 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl0-f71.google.com (mail-pl0-f71.google.com [209.85.160.71]) by kanga.kvack.org (Postfix) with ESMTP id 0D30B6B05AC for <linux-mm@kvack.org>; Fri, 18 May 2018 04:43:08 -0400 (EDT) Received: by mail-pl0-f71.google.com with SMTP id o23-v6so4621838pll.12 for <linux-mm@kvack.org>; Fri, 18 May 2018 01:43:08 -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=T4IN2ogCgXmtQjgnU4bMddiXvyyCxX6PEh5XodyYhDZW7vybUa7Vtt5z8kYDJHJZ6G mn9/i/vgrZ4AQwwAVPXyhVpv8BPEpnoIUL2Pg4IoZo8U7/aff1kTXqCsvLNnyRhxt62N IrPrC8Y7Z8+y0jkiMBNrsMTb4vmlJpi7nfRLLyz0cvUxeLiNms9KkN2geteAw44wrzen +50UnDD4QXZvLivSxMB8Up3vnkWLbbnEuc/SzrWOK7DBKP2I0UuUHZjdHTaqrDYr2hBh BbpAw6+A2+OUeIXVX4UBuV1QBZalKyUCNSoGcaO98KC4twr17Inv6B93LlLkgfT3q9bG wQ9g== X-Gm-Message-State: ALKqPwf9WuR0NKRedUgkunK0DC3ig4i3eqtjsSTH/VjRsejg0urqxIGt +QKirPiY4xBVXhRNKI5zdqSeknlYmMEFYrge+PpDnan8jf2NQSBfBANKZS6VmREB4D1mrlULz0G SScC4BCj1OL3B3/xlPDStcMCkGA0a6yUBV3v6kebKiTiubWEa2vIWV1rb+dwCnKCxvQ== X-Received: by 2002:a17:902:28a7:: with SMTP id f36-v6mr8602220plb.155.1526632987769; Fri, 18 May 2018 01:43:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqc0uO68qNN4YWExxSkeQURFpsfNts2IdeUm6pYggEX/xQztJFkX1NwEtiNqDmLL0B7hpbq X-Received: by 2002:a17:902:28a7:: with SMTP id f36-v6mr8602195plb.155.1526632987156; Fri, 18 May 2018 01:43:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526632987; cv=none; d=google.com; s=arc-20160816; b=yBDTOC81aobcYJuW2/KsgfW8MH7XMquw7pdjsH3Wwn34EKbAOwKWhi9BhXQxz0LMll t7Tz1oOVFuRd5QmGaKdO6VTbmTnH/CK7E+ZjGGYP3k+LnieircLK8u/lGvDtLv7I2Qxt lOOELzmtyvkrRV6jXIDChZSliyvvIqBq1iKubxS6KI/gbbRxxOmTFJfhFQiIn5MRn5Gc QC4BsJ3MGiIlA+bugh4fgfm6tbmpqxg1dWWtiRDAFbWLjuTxZFjKO+BSmsl7rqGfT2Yr j+NJboWhzH2AGiHVv2CKS9VmKA4jBmVC9JAwu2NYtYf7haHFh1UFZGfUQDfKEWolWUmf /YdQ== 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=hBb3KAe3zL4JSQw1CDwRDYWoidGsJbsmheMIMR6Gm5Iio7Siod2zpcMjw8yNP5wnqo 4SEkCYbduWe1AZTAMDtG69U51Wy+PMFu6XI4r5b7MxjlCLLkNlHbTBVYnBBMxTjtxwyJ tKbYx7JjUsTodxbhe3Iyn39LNMEYxAbgQevJmScsBOcceAwfePuwPy6oasFx1bqKkHBz 6gjyeJUWdxbBlct9L2jngjjEUXaj4+3aeuajymeghxeRUAs1SB1fPu7DceoR9J1ZZYF4 KTjHvO/S7XXLQCW7kfsHBSA9w6xfDHG/s/9pMv9kpSdyuCuxXuW6jh3tZkxB+lchxqE7 +ZmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=eRXAPltb; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.5.94 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50094.outbound.protection.outlook.com. [40.107.5.94]) by mx.google.com with ESMTPS id u68-v6si7169566pfb.42.2018.05.18.01.43.06 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 May 2018 01:43:07 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.5.94 as permitted sender) client-ip=40.107.5.94; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=eRXAPltb; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.5.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=b9UPD/IfIGGbOr+M4Lq691D/JgW5ZmeR0yu8brP/nJU=; b=eRXAPltb+QKl6DTylNWgbBQCTI2xhDcOiVMasBeLQWu2Kqa00o1/MJ/JYj8HGi+MCUFh+/5RdxfCUUiHEwQ+wdoITx/r7wG5OWuAoB1l4LI3FkGeZrSgWgGWnHm5lKqTCrO4SHi8clMpLKzhuC0Xzh6wy+sF0xO0oP85z92thzE= 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.776.11; Fri, 18 May 2018 08:42:59 +0000 Subject: [PATCH v6 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: Fri, 18 May 2018 11:42:55 +0300 Message-ID: <152663297580.5308.11314227717473130012.stgit@localhost.localdomain> In-Reply-To: <152663268383.5308.8660992135988724014.stgit@localhost.localdomain> References: <152663268383.5308.8660992135988724014.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: HE1PR0501CA0032.eurprd05.prod.outlook.com (2603:10a6:3:1a::42) 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:P8FdrBSpb6Rruu3A2kxyUGEEoEKm0kT+8IRqXzOR/NmlDU8bK9fAmzooh5S+f5aLNmVfMMO2orStUWzgUuIONW7RentR/WuFRfsolzOt4h6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33SAATvChiE3h5IGMftiIe0z7hPXwREkuiuXNLMF1031M5L6VJ3JhR0eyYjskFUTPRLP4nk8RgwumUZbtytC/gqNY6hqYnRwXluplDY7NBBwWANxB6CDk2VTEnQHmR2/trSXWR77S1Bhk9iyaKsqWOeUuYHiCf05J65e6pvgdu3UehMOzNDfHy10EvRMoTHkUn6t/Omr2g2D1LNaMT7V6IZ9X8HX2TsrgaCPRKc57X; 4:SY9RfApNRFgmWDEoDUnq4P1zwfQHwZyqdrP9EU9CHO/10l3NWBf/LxXWM/LDA4rcjU+I6QhQmORW9Pm9m0sNt+HX3mQbm+NJ9t2UYM5/BhIro7Z7SxZBMg4yFBtAYgo5kw/XMs5pvrbmZizVE/l9jYwE60ngly4YXgZ3x3O5Yhe2Fl4rRy5U9yStHmCN9adjXp+MPDIdcrUI7LCh5r7eODg3GVhPFA1Id7sckmqBKIG0gFjTQKw4XcN5cPD81vc7VqmD63OoWOl5VTRxtchsug== X-Microsoft-Antispam-PRVS: <DB6PR0801MB1333EE0E54CCF8A0B0D5519CCD900@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)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:DB6PR0801MB1333; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0801MB1333; X-Forefront-PRVS: 0676F530A9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(39850400004)(346002)(396003)(376002)(39380400002)(366004)(189003)(199004)(23676004)(2486003)(7696005)(305945005)(316002)(58126008)(47776003)(76176011)(2906002)(68736007)(52116002)(446003)(11346002)(97736004)(3846002)(6666003)(33896004)(25786009)(7736002)(486006)(476003)(6636002)(61506002)(956004)(6116002)(478600001)(8936002)(7416002)(5660300001)(16526019)(230700001)(103116003)(59450400001)(8676002)(386003)(66066001)(9686003)(6506007)(105586002)(186003)(55016002)(106356001)(53936002)(55236004)(81156014)(81166006)(86362001)(39060400002)(50466002)(26005)(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?MTtEQjZQUjA4MDFNQjEzMzM7MjM6VGFaTFMya1dUcTlrUGpmaVQ5VS93Q0xZ?= =?utf-8?B?UXV5ajNXU0Nkcis4V1FpRy94WjZCNHRCbnJnMXQzUnMvYlo4R0JxZTVBVzJD?= =?utf-8?B?TVU4ZVd1cldZR0MzaFVZTHlkK0FwRXNWaGdpTW5BSW5yZmM0RERhTEJuVlkw?= =?utf-8?B?ajJSaHpUUll5UTlJUGpnQzBmY09iNXB0THZ5blAzVnVqVHFSdnZtL1dzUnFN?= =?utf-8?B?VFhCeVF6c204YlhKMEo2ekZ2cHkrcHVIcFRaYStHVmdIUzBYUWtXNE9FNDlK?= =?utf-8?B?dHZxRzBNYk91RW1DUUVJTmI2M3ZsTWhLSHp5TExuQURKUFhRWTFtNkhvZ3Nz?= =?utf-8?B?cnFGUlhGVjZrakVYUG8zTUEzTVRQTUxqMVBJVkRZbTl1YkxoeTlva2NEaGlZ?= =?utf-8?B?Zmt4OS9yTSszVkI4dHNHRVNma0FMOUVrQS9XeHFrUTFYaXVYL3lKNDZlaHQv?= =?utf-8?B?UXQ3cmFBU2RHRGw4SVpRNnNlWDhjNUdYQWtCcDJvcVp0Zko4WXFHbENuTzQ5?= =?utf-8?B?N0F1TS9YV2ZUK1E3SzhtSXYrWXUzSnFnSzFzOUl1U0JoVVBFRXhhSDRT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GfCxPPLzhn1nLGhZDDJeNPymP04T4E2anIDnDtRAyK+abNb9vNFtUR7s4xnTD2sqChOZ9kC5gDxvWAHdcfn87GEjfEzLeaxQHLJerTv1oQBw==; 5:jETL5RInMm03RFhTxREqaoq+j1kjkrYtuJKnMmbkt+czhBQ/jztw/0BDPekM5Q4UybgzMhqlrV5366wqNillghqKVz94GuJxDObylQSjnO3M2d9a3utatxgfmvBsvO7nm54xo3MJy0Qm0HNtKKWtNG7ZDhYqZZiZX09WMUdvf8Y=; 24:Fmnu3LaUNElr2Y1rT88Shr06Pq4h/qYQZIJao2+Z/vel9HMoCZKVx9D6VW4pZx4nPwcd6joWog+DDBj+OJegIQ0gzW7raPu/8C3zYPXuTdo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0801MB1333; 7:Km4IspWr/XUrpeQJhekLXg/NaxRqDQvcqVzT7CSa9MMFpzS4qcy4ryD7imZQi1hqm4ycZWMwzv7SWm8YojhPVOO8tRAKFRW4IJ5VRxuHOx8BRLxNWFGKdschLoHY0N9oxftrERkIXkpl1WmcK47D50RHad0N5fopt6Bvv82qXS73mhYoRRZ7cp+HkVovldaB8PAnaRLw5t8FGf9lgHatjOMZRZd62GPgV69hWaXWBtEfYkchK3SiC49iIwAHl1G3; 20:JRKesy9vyRrVa0+6E/LmWJ9gb38PJ3tXDjM4GNlZWBu8Bj1A1S8GcnVXAWQBqbPvQmHLRVJHbkMlsowA3nhoFfHujKZjV7YxqQBD5H0erO24Pbx1oIAztJMu1XRVbEm6M9AvXzIL+xRKHHjBWCqP+k+jDIoctO1LPBkznerbPeA= X-MS-Office365-Filtering-Correlation-Id: dd6c8c97-773f-42e9-14a3-08d5bc9b5d61 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2018 08:42:59.4294 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd6c8c97-773f-42e9-14a3-08d5bc9b5d61 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/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(-)