Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp441721pxb; Tue, 14 Sep 2021 00:37:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWH7l4Ctjmc/juf16uUW6oerrczsLyNXNniPWGkICMKgKWaDDqKSJMG9iQSR28kS6YznJH X-Received: by 2002:a5e:da44:: with SMTP id o4mr12072836iop.147.1631605050482; Tue, 14 Sep 2021 00:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631605050; cv=none; d=google.com; s=arc-20160816; b=oriiedBdWvx2K1tzLTVQpPJdT6SJlFsQuJUJrDKXkjw7YR7Zb5LGUFNdMbTabHd5rH FofFILNqbMuKbD540z9iN3UmuLN6sRwU6cjFT/Zbf27GJH5aqqNwAqR19SN1C8n7+Dl+ f7CZpRBvbwaTX8yzyuJXDbdqn4WB6VkVDzitrBqmOtkjY+L9bvdSL+zwEXBkyGY4I2sS qmG+x9/gxsJIokzfujnfT/0UjCgbiz9aV6CO0F8sXTwWzrDqOstQWaYXeVHNhO5bPDpq qXQVKJ82BqfrNW8dr1tq76GDa0D5wKAPellUMzQjdJ8qFQHfvVB3U5YL01v+UBFBwGeU DeWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yQ5/G4W/vpgRy8GesLP2bdOIlsZoFdBH5AJaA8cLR/Y=; b=VsZoWx9yxK/OJowDAjAi0BOERyHXFORgyrZfZIiEE/1WjWdqH/J4LtUl5xHMgEqKhT 9wTXXm8T4zbR6F3iIC01YXpUoqu8fv6E/KofL9kTjIW3nrzQBdL1bPKvMl+CUkQPj0CE 9l3a0+cHZbWzMC5xi9VDcJ6OfnOdMab5oWWniLtaJvdctIJn22nxZ7C1Vb/rWEiEUxnQ OcpleZL/4hIzIdv6Dr5Uou82BFlxpcZtXWE8ymmdFxfKy0gRxg0CAqEL0M6zmlpEWz+r 7wD/6aGVgcxgrqtO8VCZlBbryWwFgVH86eAF2rIv9/qVHqMnbrIMLhKZ/9Yz65IcAjHv +JVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=FarpNNTH; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o1si8155292ilk.81.2021.09.14.00.37.18; Tue, 14 Sep 2021 00:37:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=FarpNNTH; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241115AbhINHid (ORCPT + 99 others); Tue, 14 Sep 2021 03:38:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241355AbhINHiN (ORCPT ); Tue, 14 Sep 2021 03:38:13 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37D29C0613B9 for ; Tue, 14 Sep 2021 00:35:47 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id f129so11933887pgc.1 for ; Tue, 14 Sep 2021 00:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yQ5/G4W/vpgRy8GesLP2bdOIlsZoFdBH5AJaA8cLR/Y=; b=FarpNNTHbqImJsUbmxvWFBcLoHkl6BQ5MmiEIzrpgL9pKZtHDMT/WVn7YqLTChckTQ Vb8mkkzxsiy5d984PcX6Y2tr+T935aXAw6/2kOpwngXBmppzWAh4woYUdrs6pLSbX+uf 5hmRpYQQOKXSOdQxVx7V+uYhC9vy6Qsl0ItU2KVF8SgisNPegYwAwxNKe1iu2XhKqi/u k6bRj20yfz6bsax0wNnkn30hXSOzmwtCT7Ngn+siAc41Smq0h83aaIGKAlvqV5ClQ52Z Cmg7DrTJkg4LiQDdE8uSNXwck3v/ZvhBmAJdb+6UQp5nl9CC3iGNHX6DskJznrt4+5oW of/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yQ5/G4W/vpgRy8GesLP2bdOIlsZoFdBH5AJaA8cLR/Y=; b=S5n8LcSUNmRR5XjVPdCIvVAIPWtBxw1gTzAzR+wzfhf0GtIRHg54QjpO7l4ct6cqEa uU5YE9XeQnrlwYWyGEDHPY5OJQzOQpQ4DBki6uQo2+HcH5fb2x36zldo10uRk0pKZnAe VWoci86Uv+mQas4S5ly24XVJB9LRiqVvWUYhdXTsBZEKdEOsiyVcTjaE5F/k/pDawKP4 fNiKAmCsMJ34yHsf2JO4lgu37OqaYCljl7Yel+09eFkZTG0ehLLiaYfRylag1bsT7vuS LTneAoEaJyToyISsyZou+9V2x+/y0DAzR/8Ydoj3neQ3ZAz+slBIDwHuJAgDtWBAZ7Lw 9GBQ== X-Gm-Message-State: AOAM533D54rQMCtIZjWcFcipLZU0kS7kZ7iW8cSf9iy0F80DWe40hxsX 2Psx8RbQ+woyBm9QyDsX9PhD8w== X-Received: by 2002:a62:b414:0:b029:32e:3ef0:7735 with SMTP id h20-20020a62b4140000b029032e3ef07735mr3406553pfn.61.1631604946790; Tue, 14 Sep 2021 00:35:46 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.244]) by smtp.gmail.com with ESMTPSA id s3sm9377839pfd.188.2021.09.14.00.35.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Sep 2021 00:35:46 -0700 (PDT) From: Muchun Song To: willy@infradead.org, akpm@linux-foundation.org, hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com, shakeelb@google.com, guro@fb.com, shy828301@gmail.com, alexs@kernel.org, richard.weiyang@gmail.com, david@fromorbit.com, trond.myklebust@hammerspace.com, anna.schumaker@netapp.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, zhengqi.arch@bytedance.com, duanxiongchun@bytedance.com, fam.zheng@bytedance.com, smuchun@gmail.com, Muchun Song Subject: [PATCH v3 24/76] erofs: allocate inode by using alloc_inode_sb() Date: Tue, 14 Sep 2021 15:28:46 +0800 Message-Id: <20210914072938.6440-25-songmuchun@bytedance.com> X-Mailer: git-send-email 2.21.0 (Apple Git-122) In-Reply-To: <20210914072938.6440-1-songmuchun@bytedance.com> References: <20210914072938.6440-1-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org The inode allocation is supposed to use alloc_inode_sb(), so convert kmem_cache_alloc() to alloc_inode_sb(). Signed-off-by: Muchun Song --- fs/erofs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/erofs/super.c b/fs/erofs/super.c index 2dc0b9f1d421..1bf7f8c6cfab 100644 --- a/fs/erofs/super.c +++ b/fs/erofs/super.c @@ -83,7 +83,7 @@ static void erofs_inode_init_once(void *ptr) static struct inode *erofs_alloc_inode(struct super_block *sb) { struct erofs_inode *vi = - kmem_cache_alloc(erofs_inode_cachep, GFP_KERNEL); + alloc_inode_sb(sb, erofs_inode_cachep, GFP_KERNEL); if (!vi) return NULL; -- 2.11.0