Message ID | 152931515883.28457.15515405237855359874.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 BBC86600CC for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 18 Jun 2018 09:46:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA042289A3 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 18 Jun 2018 09:46:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9EA96289AB; Mon, 18 Jun 2018 09:46: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 1C252289AD for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 18 Jun 2018 09:46:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 141A46B0007; Mon, 18 Jun 2018 05:46:09 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 118BD6B0270; Mon, 18 Jun 2018 05:46:09 -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 EFCE16B0271; Mon, 18 Jun 2018 05:46:08 -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 AC5636B0007 for <linux-mm@kvack.org>; Mon, 18 Jun 2018 05:46:08 -0400 (EDT) Received: by mail-pf0-f199.google.com with SMTP id y8-v6so8353457pfl.17 for <linux-mm@kvack.org>; Mon, 18 Jun 2018 02:46: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=OXe7YKWjRmEZE3mUe/iW/B2RET+r4Nhkxtqtifjjkfw=; b=OpE7rCbiR/TvxP8BMQyeiNquguEFyQuba0c8MehVhQEBE2Xq1WtPKOZt4V7YCOlupd Z+Nu4CRYSOqC7NZf0Z9Mrqh+0nsLQwwLpWobgQwFTYW7DTgBTQFeHL+iuX5MThAooAyC KM3zk4x3/QtbGt2s6SaCHVaA7KUtlRNqf+aY+OIOqL9epCFm9SdKFWRA2YcxF+Ws2ixD 71n84C0tEBWNhBvV1OEwXuBl90railESM9r83v4OQjauc6ci5wIlsHRnTkrLKdiIgmGS kCoe+YpCY0x9GKs0FtuoDSJjDnTGAPog0bSW0fRS43bX9T9IxR/kWUKx51qqTzaZKQLx psqA== X-Gm-Message-State: APt69E2PccaOrGdODTOxEzfNHAB7R8J67z7hUWtHNakDcaytNpH89ZIS 9144W11R7FjIAMbc23uhxeETHjbMFOQoZpWCcBee8lYMkoGhydVEDyhE9/THMH4QHRUEpt99Qsd DOFSfTUh92lRMYA0/Sk77kOZ/eOeYwU79zM+Dloh6EoNHDe5opoI8u8YLiBR8URZlpg== X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr13559261plu.22.1529315168409; Mon, 18 Jun 2018 02:46:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIKQv6e+zFooOlt98FAFsm5Km6u9u15QRk5uGBaUYCvbG6s6auGqOs47fqYsXqcxEKAnV8x X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr13559213plu.22.1529315167659; Mon, 18 Jun 2018 02:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529315167; cv=none; d=google.com; s=arc-20160816; b=VwRzeFwH5D5hOjEWb7dTyNZrdewtT0vgX2SyIHqOQVUraOfZ6/CyUK0WYBHstanjAp 6Aa4xHNbz3MqA+rYSrAAWqxQkdMecyfvv6OSJX5CmNEukhWQ8+5SjHStl46d3Os+z72H EwmHV/GX6W9L6Clor+OoaYuaax0Kk10fiXYR9ckuOlQGPVDYyA3gmS7QEOxsUWOClS+G 7SDaOnl7LjxR8lKZwxKMTHEqMt7VmT9chmu0jwlie8/M8qifSjHHzh4wh3rMzVV4vh86 wJ2TN6mUyXh6QTMd4LO/rVsDAoFKv+VOog6mLBfbDelnuDPJy8lEE0Q8VRmzQwoUa3P0 9uSQ== 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=OXe7YKWjRmEZE3mUe/iW/B2RET+r4Nhkxtqtifjjkfw=; b=Uuvpz1yvHyfWPnb6nkezE9rsU9+TbvD4ZMTTy5RwD/Ig9XcSDzep17KI6PtURpW8yZ wDVPWzm1Hl5OTY/z6N31r496Ah7jy0Nfv1jorL8YMBbB8wAEvPn+k73Ngu4WHCPRuD+I vM1yjKmaVH2t+MWvWHrRT8cVu7XYVgXOWca7OBhVAKrF41qM8Cz3gmw+2vpniw8e3HRB wfBIGzkFSc+R9OjyNEqQGxh/7TRu+HGHTlWSFkNh6qQIBx2xpozszbvgX2Z8gc7sXm2I ynr3F8yw4pcYOLS9Ilo7gigRRtMg9vW9SY5KadQjWNQqdtt1to3FVvMHJXXOheavXfx2 9swQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=COU8ZpJ8; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.3.111 as permitted sender) smtp.mailfrom=ktkhai@virtuozzo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30111.outbound.protection.outlook.com. [40.107.3.111]) by mx.google.com with ESMTPS id o9-v6si14324055plk.434.2018.06.18.02.46.07 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jun 2018 02:46:07 -0700 (PDT) Received-SPF: pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.3.111 as permitted sender) client-ip=40.107.3.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=COU8ZpJ8; spf=pass (google.com: domain of ktkhai@virtuozzo.com designates 40.107.3.111 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=OXe7YKWjRmEZE3mUe/iW/B2RET+r4Nhkxtqtifjjkfw=; b=COU8ZpJ8ysoMgmf14MAm1O7V+9ykHr5HT0LiUg9y5vL0ySjz7w6pAHbT1w7uDiNTA3I+toiRx5V1vsBo2R34c3PMkNl8kpy79Qsli0+NdoDxcV1sWUPp1DUBeF9tpfvCJ2duOMSPU3VehCoJHum5A1eDZbMHJnwM1sv863t1YIk= 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_GCM_SHA384) id 15.20.863.14; Mon, 18 Jun 2018 09:46:01 +0000 Subject: [PATCH v7 REBASED 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 Date: Mon, 18 Jun 2018 12:45:58 +0300 Message-ID: <152931515883.28457.15515405237855359874.stgit@localhost.localdomain> In-Reply-To: <152931506756.28457.5620076974981468927.stgit@localhost.localdomain> References: <152931506756.28457.5620076974981468927.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: HE1P190CA0020.EURP190.PROD.OUTLOOK.COM (2603:10a6:3:bc::30) To VI1PR0801MB1341.eurprd08.prod.outlook.com (2603:10a6:800:3a::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4fcae6d0-7b82-44c1-15d9-08d5d5004e61 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:VI1PR0801MB1341; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1341; 3:/8dFkv7cfmTujrKTyU1qjE9jZ4O47b5h9/qdhXJrFpNXcisg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AIKXqlTME1x8VICagDkQnBqlvl91VP48918J+9gPfb0jbzjFHSgt831hOVU2MB+lgIv31nfKjEKI4WNis2fjgc08zp1V862FLi7ggCQHmd+DW9A8StOe8L/P1rTexle7xKsy9nmjWGx6L1X6KWlM2RVGk0l9g0UW+fTjRzDrP8KhBSDSNYrqbjw8HPsPMXrUD84l4y+tv4UoSTaLRTOx/aRNwb/oXQ0xePdqc3h0E0ceBj8gu9NNNCU98QaKFAsCxK/zZSp5hwFgNmL/x/bqi5pwcoBJOeF3Zq9ticiIw; 4:Bxoxi17kwNCmJlN6AhNaAxjVx1IRAao5In9ZkQ9YEi8DVBf577u5wu9FgACbOLXSdnLMsvyp002Z2TzTlOywtf2DUbgIkEAHrt/NQFG889rBJGOoLie/PFd0huifbdnGQ14gQYsPJ7iRlN7wQHt+NW3WB8vg12l3nAimbcA3N5UUSgUkpZxj/8Pc6ZGmXbRhUu/nwbFokVhlOKeIeMvIpWMdrgZEKsismGA4co4YQwn9yCraaXesz/pxHM5zrfDg+SNsz6aWrFTkJeSHrz3Md3VzJeWa0NnsyLVEZrhIK4uE6JnjKuee+Csl3i3Rw3+Sp0G4ydPjjMIWweN/CwbJjUou/KHo498dhQA3yZtiziYQAi3uZ+7R6d4FbUJKk2Yt X-Microsoft-Antispam-PRVS: <VI1PR0801MB13410E2680C4A6071B0A395CCD710@VI1PR0801MB1341.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)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:VI1PR0801MB1341; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0801MB1341; X-Forefront-PRVS: 0707248B64 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(39380400002)(376002)(396003)(39840400004)(366004)(346002)(189003)(199004)(2906002)(6116002)(3846002)(11346002)(956004)(6636002)(478600001)(486006)(5660300001)(86362001)(61506002)(81166006)(25786009)(6666003)(39060400002)(446003)(97736004)(476003)(53936002)(81156014)(106356001)(105586002)(9686003)(8676002)(230700001)(6506007)(386003)(8936002)(59450400001)(50466002)(47776003)(7416002)(55016002)(316002)(16526019)(68736007)(58126008)(26005)(186003)(23676004)(305945005)(66066001)(55236004)(2486003)(103116003)(7736002)(7696005)(52116002)(76176011)(33896004)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB1341; 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?MTtWSTFQUjA4MDFNQjEzNDE7MjM6NWpaclMySVlCc3VRRHJMSnlZcUJZaFl4?= =?utf-8?B?Z0FnNTlGR0o2ekZMZHoxRkxwYnJzTGxkVEpzbkkzRDNKZEhQbEk0Q1hiUUUr?= =?utf-8?B?a3MwK0NLMFQ4NEV6M2pVSHNCaGlUVmwyVlY0Mk1ZbFdtQjlhSnFRV2o1cFkx?= =?utf-8?B?cmZHV2h2RVRlQUM2WEYrR25ocW9IVXZuajJZNXhHOWhuY2hxRW9NUDlQajJh?= =?utf-8?B?UU5Db0NQS0loUnM5dDREbU0yTEpRYkUvZFFtbnJ1Sk43TExSR3dsQlhtTUxa?= =?utf-8?B?RnU3ZTZtajdGS1JwRk1ienpDVWlMZ3MzU3duTTdkWnA1dlU3OWJqV2lQZ2xN?= =?utf-8?B?VUdKWHl6b1IwS01mVnN2RjZvMHNpQUkrckhIUDVEVDRXcXFzZHhKRHFaTXUx?= =?utf-8?B?K2pSNVJHT0xveWVKdXhQNVFub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QcdyrX16NJAbuFpOXUAyh5WslXBIXuc2lUbYjBVLv91KheoWxy9FjKSh6roez+75UlhKJa2QId1+MsG3nkAhrZq/FYMZbp568lESdeVK09097n2XV1PNfb3a6Hosu1UzhnhqCa1Ks9iqKR0= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2018 09:46:01.6720 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4fcae6d0-7b82-44c1-15d9-08d5d5004e61 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: